|
@@ -1114,6 +1114,7 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
|
|
|
/* Allocate a dummy frame */
|
|
|
i= ff_find_unused_picture(s, 0);
|
|
|
s->last_picture_ptr= &s->picture[i];
|
|
|
+ s->last_picture_ptr->key_frame = 0;
|
|
|
if(ff_alloc_picture(s, s->last_picture_ptr, 0) < 0)
|
|
|
return -1;
|
|
|
ff_thread_report_progress((AVFrame*)s->last_picture_ptr, INT_MAX, 0);
|
|
@@ -1123,6 +1124,7 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
|
|
|
/* Allocate a dummy frame */
|
|
|
i= ff_find_unused_picture(s, 0);
|
|
|
s->next_picture_ptr= &s->picture[i];
|
|
|
+ s->next_picture_ptr->key_frame = 0;
|
|
|
if(ff_alloc_picture(s, s->next_picture_ptr, 0) < 0)
|
|
|
return -1;
|
|
|
ff_thread_report_progress((AVFrame*)s->next_picture_ptr, INT_MAX, 0);
|