Commit 284aa079 authored by Michael Niedermayer's avatar Michael Niedermayer

flv: Initialize initial frame to 16

Fixes Ticket563
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 73fb23dc
...@@ -1132,6 +1132,12 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) ...@@ -1132,6 +1132,12 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
s->last_picture_ptr->f.key_frame = 0; s->last_picture_ptr->f.key_frame = 0;
if(ff_alloc_picture(s, s->last_picture_ptr, 0) < 0) if(ff_alloc_picture(s, s->last_picture_ptr, 0) < 0)
return -1; 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, 0);
ff_thread_report_progress((AVFrame*)s->last_picture_ptr, INT_MAX, 1); ff_thread_report_progress((AVFrame*)s->last_picture_ptr, INT_MAX, 1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment