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
11771177 ff_af_queue_remove(&s->afq, avctx->frame_size, &avpkt->pts,
11781178 &avpkt->duration);
11791179
1180+ avpkt->flags |= AV_PKT_FLAG_KEY;
1181+
11801182 *got_packet_ptr = 1;
11811183 return 0;
11821184 }

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