Skip to content
Snippets Groups Projects
Commit 21270cff authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

h263dec: Fix regression / crash with lowres.

Fixes Ticket757
Bug Found by: ami_stuff

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 30b996d4
No related branches found
No related tags found
No related merge requests found
...@@ -1232,8 +1232,8 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) ...@@ -1232,8 +1232,8 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
return -1; return -1;
if(s->codec_id == CODEC_ID_FLV1 || s->codec_id == CODEC_ID_H263){ if(s->codec_id == CODEC_ID_FLV1 || s->codec_id == CODEC_ID_H263){
for(i=0; i<s->height; i++) for(i=0; i<avctx->height; i++)
memset(s->last_picture_ptr->f.data[0] + s->last_picture_ptr->f.linesize[0]*i, 16, s->width); memset(s->last_picture_ptr->f.data[0] + s->last_picture_ptr->f.linesize[0]*i, 16, avctx->width);
} }
ff_thread_report_progress((AVFrame*)s->last_picture_ptr, INT_MAX, 0); ff_thread_report_progress((AVFrame*)s->last_picture_ptr, INT_MAX, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment