You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03: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 8d2d2519e0
)
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user