]> git.sesse.net Git - ffmpeg/commitdiff
frame rate emulation "fix" by (Mean <fixounet at free dot fr>)
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 4 Jan 2004 17:43:28 +0000 (17:43 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 4 Jan 2004 17:43:28 +0000 (17:43 +0000)
Originally committed as revision 2664 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpeg12.c

index b902fd86ee7982c1c869cce67fdafac6d9d4c250..6a4e4f9c693f3037b6a61f1dc6e28c687e404243 100644 (file)
@@ -309,7 +309,7 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s)
             put_bits(&s->pb, 1, 0); /* broken link */
         }
 
-        if (s->avctx->frame_rate < (24 * s->avctx->frame_rate_base) && s->picture_number > 0) {
+        if (s->avctx->frame_rate < (23 * s->avctx->frame_rate_base) && s->picture_number > 0) {
             /* insert empty P pictures to slow down to the desired
                frame rate. Each fake pictures takes about 20 bytes */
             fps = frame_rate_tab[s->frame_rate_index];