History

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.

James Almer committed 1 year ago

Commit ffdace51 parent faea08b1 file · +2 −0Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/aacenc.c+2−0
@@ -1177,6 +1177,8 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, · 1176 unmodified lines
1177 ff_af_queue_remove(&s->afq, avctx->frame_size, &avpkt->pts,1177 ff_af_queue_remove(&s->afq, avctx->frame_size, &avpkt->pts,
1178 &avpkt->duration);1178 &avpkt->duration);
1179 1179
1180 avpkt->flags |= AV_PKT_FLAG_KEY;
1181
1180 *got_packet_ptr = 1;1182 *got_packet_ptr = 1;
1181 return 0;1183 return 0;
1182}1184}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t