diff --git a/lib/ffmpeg/libavcodec/mpegvideo.c b/lib/ffmpeg/libavcodec/mpegvideo.c index a0acda19c1296..31642e6fe26fe 100644 --- a/lib/ffmpeg/libavcodec/mpegvideo.c +++ b/lib/ffmpeg/libavcodec/mpegvideo.c @@ -1004,7 +1004,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->last_picture_ptr->key_frame = 0; + s->next_picture_ptr->key_frame = 0; if(ff_alloc_picture(s, s->next_picture_ptr, 0) < 0) return -1; } diff --git a/lib/ffmpeg/patches/0048-Dont-mark-genereted-dummy-frame-as-keyframe.patch b/lib/ffmpeg/patches/0048-Dont-mark-genereted-dummy-frame-as-keyframe.patch index ca454224fc58d..39e92bf100430 100644 --- a/lib/ffmpeg/patches/0048-Dont-mark-genereted-dummy-frame-as-keyframe.patch +++ b/lib/ffmpeg/patches/0048-Dont-mark-genereted-dummy-frame-as-keyframe.patch @@ -25,7 +25,7 @@ index c8706bc..a0acda1 100644 /* Allocate a dummy frame */ i= ff_find_unused_picture(s, 0); s->next_picture_ptr= &s->picture[i]; -+ s->last_picture_ptr->key_frame = 0; ++ s->next_picture_ptr->key_frame = 0; if(ff_alloc_picture(s, s->next_picture_ptr, 0) < 0) return -1; }