diff options
author | James Almer <jamrial@gmail.com> | 2024-11-24 20:25:09 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-11-24 20:38:15 -0300 |
commit | 8d2d2519e04418d8565e0d6ece662c01121a35e1 (patch) | |
tree | 50ba262c16dac417b2922cb6d7ff78a690a1cf83 /libavcodec | |
parent | 99f87251e0cc6bf8f2a7c21e1e72e6144e5a6701 (diff) | |
download | ffmpeg-8d2d2519e04418d8565e0d6ece662c01121a35e1.tar.gz |
avcodec/mediacodecdec: set set keyframe flag in output frames
Don't depend on the generic code setting this.
This is in preparation for a following change.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mediacodecdec_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mediacodecdec_common.c b/libavcodec/mediacodecdec_common.c index 84c34ac270..8a270f2f29 100644 --- a/libavcodec/mediacodecdec_common.c +++ b/libavcodec/mediacodecdec_common.c @@ -416,6 +416,7 @@ static int mediacodec_wrap_sw_audio_buffer(AVCodecContext *avctx, frame->pts = info->presentationTimeUs; } frame->pkt_dts = AV_NOPTS_VALUE; + frame->flags |= AV_FRAME_FLAG_KEY; av_log(avctx, AV_LOG_TRACE, "Frame: format=%d channels=%d sample_rate=%d nb_samples=%d", |