[SCM] libav/experimental: fix drop frame timecode flag

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:57:29 UTC 2013


The following commit has been merged in the experimental branch:
commit 39076e27ded9f31158e5fa440059a04650cfdc40
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date:   Thu Mar 8 18:25:47 2007 +0000

    fix drop frame timecode flag
    
    Originally committed as revision 8296 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index e4d5bc9..b7c6164 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -369,7 +369,7 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s)
             }
 
             put_header(s, GOP_START_CODE);
-            put_bits(&s->pb, 1, !!(s->avctx->flags & CODEC_FLAG2_DROP_FRAME_TIMECODE)); /* drop frame flag */
+            put_bits(&s->pb, 1, !!(s->avctx->flags2 & CODEC_FLAG2_DROP_FRAME_TIMECODE)); /* drop frame flag */
             /* time code : we must convert from the real frame rate to a
                fake mpeg frame rate in case of low frame rate */
             fps = (framerate.num + framerate.den/2)/ framerate.den;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list