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>
pull/391/head
James Almer 3 months ago
parent faea08b722
commit ffdace5ad4
  1. 2
      libavcodec/aacenc.c

@ -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;
}

Loading…
Cancel
Save