Browse Source

fix drop frame timecode flag

Originally committed as revision 8296 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Baptiste Coudurier 19 years ago
parent
commit
39076e27de
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mpeg12.c

+ 1
- 1
libavcodec/mpeg12.c View File

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


Loading…
Cancel
Save