diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-18 14:56:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-18 14:56:59 +0200 |
commit | 284aa07932264853dd645f62db9668774cbef2a1 (patch) | |
tree | befb5729c556c5f7ed2493dcba26cb897ae5162c /libavcodec/mpegvideo.c | |
parent | 73fb23dc5a5b0d91491c8c4645134e2f7a9e6965 (diff) | |
download | ffmpeg-284aa07932264853dd645f62db9668774cbef2a1.tar.gz |
flv: Initialize initial frame to 16
Fixes Ticket563
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 7ed663fb82..7f0fa2498e 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1132,6 +1132,12 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) s->last_picture_ptr->f.key_frame = 0; if(ff_alloc_picture(s, s->last_picture_ptr, 0) < 0) return -1; + + if(s->codec_id == CODEC_ID_FLV1){ + 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); + } + ff_thread_report_progress((AVFrame*)s->last_picture_ptr, INT_MAX, 0); ff_thread_report_progress((AVFrame*)s->last_picture_ptr, INT_MAX, 1); } |