[FFmpeg-cvslog] avcodec/mediacodecdec: set set keyframe flag in output frames
James Almer
git at videolan.org
Sun Dec 1 18:48:00 EET 2024
ffmpeg | branch: release/7.1 | James Almer <jamrial at gmail.com> | Sun Nov 24 20:25:09 2024 -0300| [4b801baa46731f0377cbabaf485fe5715a334d93] | 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>
(cherry picked from commit 8d2d2519e04418d8565e0d6ece662c01121a35e1)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b801baa46731f0377cbabaf485fe5715a334d93
---
libavcodec/mediacodecdec_common.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/mediacodecdec_common.c b/libavcodec/mediacodecdec_common.c
index b1ee8b609a..3770b4f3ae 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