ffmpeg | branch: release/7.1 | James Almer <jamr...@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 <jamr...@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",

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to