aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-07-14 09:31:32 -0300
committerJames Almer <jamrial@gmail.com>2023-07-15 19:47:40 -0300
commite047d9c62bff5920074c516da966952cee20da66 (patch)
tree18a3e6d313ffdb6cb7b4aa690b5faa922d273d05
parentc183f840fa9aee6000ed90466ccbd9671f1ad7eb (diff)
downloadffmpeg-e047d9c62bff5920074c516da966952cee20da66.tar.gz
avcodec/mpegvideo_dec: properly set output frames as keyframes
Should fix ticket #10426. Reviewed-by: Jan Ekström <jeebjp@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/mpegvideo_dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo_dec.c b/libavcodec/mpegvideo_dec.c
index fcca147cd6..670b0912e2 100644
--- a/libavcodec/mpegvideo_dec.c
+++ b/libavcodec/mpegvideo_dec.c
@@ -344,9 +344,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
s->current_picture_ptr->f->pict_type = s->pict_type;
if (s->pict_type == AV_PICTURE_TYPE_I)
- s->current_picture.f->flags |= AV_FRAME_FLAG_KEY;
+ s->current_picture_ptr->f->flags |= AV_FRAME_FLAG_KEY;
else
- s->current_picture.f->flags &= ~AV_FRAME_FLAG_KEY;
+ s->current_picture_ptr->f->flags &= ~AV_FRAME_FLAG_KEY;
if ((ret = ff_mpeg_ref_picture(s->avctx, &s->current_picture,
s->current_picture_ptr)) < 0)