fixing bitrate display if -acodec copy is used, patch by (Kareila <cokewench at yahoo...
authorKareila <cokewench@yahoo.com>
Sat, 26 Oct 2002 19:23:22 +0000 (19:23 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 26 Oct 2002 19:23:22 +0000 (19:23 +0000)
Originally committed as revision 1074 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index b712c90da88d572bcd07e97ce060955e2ec38f1a..d8c7d68a4107cd2fc4d8c8d847653fc058d240a8 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -699,7 +699,7 @@ void print_report(AVFormatContext **output_files,
         }
         /* compute min output value */
         pts = (double)ost->st->pts.val * os->pts_num / os->pts_den;
-        if (pts < ti1)
+        if ((pts < ti1) && (pts > 0))
             ti1 = pts;
     }
     if (ti1 < 0.01)