1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-19 05:49:09 +02:00

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>
(cherry picked from commit 8d2d2519e04418d8565e0d6ece662c01121a35e1)
This commit is contained in:
James Almer 2024-11-24 20:25:09 -03:00
parent 26bc7827e4
commit 4b801baa46

View File

@ -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",