changeset 4637:fd9e324b3978 libavcodec

fix drop frame timecode flag
author bcoudurier
date Thu, 08 Mar 2007 18:25:47 +0000
parents 5bcb6208ac58
children 9f74306d4ac7
files mpeg12.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Thu Mar 08 14:49:43 2007 +0000
+++ b/mpeg12.c	Thu Mar 08 18:25:47 2007 +0000
@@ -369,7 +369,7 @@
             }
 
             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;