Browse Source

libtheoraenc: Keep coded_frame.key_frame a write-only variable

tags/n2.8
Vittorio Giovara 10 years ago
parent
commit
f3b4a92241
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libtheoraenc.c

+ 1
- 1
libavcodec/libtheoraenc.c View File

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



Loading…
Cancel
Save