diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-07-15 20:41:15 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-07-20 16:13:42 +0300 |
commit | f3b4a92241a33d444f7f6018ebc12e2e3a2d335f (patch) | |
tree | a2ad46f178803542ccf66378840438c611d87f37 /libavcodec | |
parent | d6006dd9f0d4d01023359230212f1f9fa4800e5b (diff) |
libtheoraenc: Keep coded_frame.key_frame a write-only variable
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libtheoraenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c index 097336bb95..612a80832b 100644 --- a/libavcodec/libtheoraenc.c +++ b/libavcodec/libtheoraenc.c @@ -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; |