You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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>
This commit is contained in:
@@ -344,9 +344,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
|
|
||||||
s->current_picture_ptr->f->pict_type = s->pict_type;
|
s->current_picture_ptr->f->pict_type = s->pict_type;
|
||||||
if (s->pict_type == AV_PICTURE_TYPE_I)
|
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
|
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,
|
if ((ret = ff_mpeg_ref_picture(s->avctx, &s->current_picture,
|
||||||
s->current_picture_ptr)) < 0)
|
s->current_picture_ptr)) < 0)
|
||||||
|
Reference in New Issue
Block a user