Browse Source

typo

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

+ 1
- 1
libavcodec/mpeg12.c View File

@@ -362,7 +362,7 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s)
/* only works for NTSC 29.97 */ /* only works for NTSC 29.97 */
int d = time_code / 17982; int d = time_code / 17982;
int m = time_code % 17982; int m = time_code % 17982;
//if (m < 2) m += 2; /* not needed since -2,-1 / 2 in C returns 0 */
//if (m < 2) m += 2; /* not needed since -2,-1 / 1798 in C returns 0 */
time_code += 18 * d + 2 * ((m - 2) / 1798); time_code += 18 * d + 2 * ((m - 2) / 1798);
} }
put_bits(&s->pb, 5, (uint32_t)((time_code / (fps * 3600)) % 24)); put_bits(&s->pb, 5, (uint32_t)((time_code / (fps * 3600)) % 24));


Loading…
Cancel
Save