avcodec/aacenc: set keyframe flag in output packets

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>
This commit is contained in:
James Almer 2024-11-16 20:29:38 -03:00
parent faea08b722
commit ffdace5ad4

View file

@ -1177,6 +1177,8 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
ff_af_queue_remove(&s->afq, avctx->frame_size, &avpkt->pts,
&avpkt->duration);
avpkt->flags |= AV_PKT_FLAG_KEY;
*got_packet_ptr = 1;
return 0;
}