avcodec/aac/aacdec: 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 faea08b722)
This commit is contained in:
James Almer
2024-11-16 20:28:38 -03:00
parent 075c6d325a
commit 1b5bdce86a

View File

@@ -2194,6 +2194,7 @@ static int aac_decode_er_frame(AVCodecContext *avctx, AVFrame *frame,
ac->frame->nb_samples = samples;
ac->frame->sample_rate = avctx->sample_rate;
ac->frame->flags |= AV_FRAME_FLAG_KEY;
*got_frame_ptr = 1;
skip_bits_long(gb, get_bits_left(gb));
@@ -2354,6 +2355,7 @@ static int decode_frame_ga(AVCodecContext *avctx, AACDecContext *ac,
if (samples) {
ac->frame->nb_samples = samples;
ac->frame->sample_rate = avctx->sample_rate;
ac->frame->flags |= AV_FRAME_FLAG_KEY;
*got_frame_ptr = 1;
} else {
av_frame_unref(ac->frame);