You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
libtheoraenc: Keep coded_frame.key_frame a write-only variable
This commit is contained in:
@@ -349,7 +349,7 @@ static int encode_frame(AVCodecContext* avc_context, AVPacket *pkt,
|
||||
// multithreaded (which will be disabled unless explicitly requested)
|
||||
pkt->pts = pkt->dts = frame->pts;
|
||||
avc_context->coded_frame->key_frame = !(o_packet.granulepos & h->keyframe_mask);
|
||||
if (avc_context->coded_frame->key_frame)
|
||||
if (!(o_packet.granulepos & h->keyframe_mask))
|
||||
pkt->flags |= AV_PKT_FLAG_KEY;
|
||||
*got_packet = 1;
|
||||
|
||||
|
Reference in New Issue
Block a user