diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-15 04:59:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-03 18:18:13 +0100 |
commit | 1d23f5bbefa843a912873d3aa778358f6847e279 (patch) | |
tree | bec3dc7977747f63c65c7463e404810451030820 | |
parent | c0ff6b6378bae114ed019f43a40feda10e59e4ba (diff) | |
download | ffmpeg-1d23f5bbefa843a912873d3aa778358f6847e279.tar.gz |
h263dec: Fix regression / crash with lowres.
Fixes Ticket757
Bug Found by: ami_stuff
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 21270cffaeab2f67a613907516b2b0cd6c9eacf4)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/mpegvideo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 666cad8151..e00131b8de 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1228,8 +1228,8 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) return -1; if(s->codec_id == CODEC_ID_FLV1 || s->codec_id == CODEC_ID_H263){ - for(i=0; i<s->height; i++) - memset(s->last_picture_ptr->f.data[0] + s->last_picture_ptr->f.linesize[0]*i, 16, s->width); + for(i=0; i<avctx->height; i++) + 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); |