[FFmpeg-cvslog] avcodec/mediacodecdec: set set keyframe flag in output frames
James Almer
git at videolan.org
Mon Nov 25 01:38:43 EET 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Nov 24 20:25:09 2024 -0300| [8d2d2519e04418d8565e0d6ece662c01121a35e1] | committer: James Almer
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8d2d2519e04418d8565e0d6ece662c01121a35e1
---
libavcodec/mediacodecdec_common.c | 1 +
1 file changed, 1 insertion(+)
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",
More information about the ffmpeg-cvslog
mailing list