Don't depend on the generic code setting this. This is in preparation for a following change.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -1177,6 +1177,8 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 1176 unmodified lines | ||
| 1177 | 1177 | ff_af_queue_remove(&s->afq, avctx->frame_size, &avpkt->pts, |
| 1178 | 1178 | &avpkt->duration); |
| 1179 | 1179 | |
| 1180 | + avpkt->flags |= AV_PKT_FLAG_KEY; | |
| 1181 | + | |
| 1180 | 1182 | *got_packet_ptr = 1; |
| 1181 | 1183 | return 0; |
| 1182 | 1184 | } |