Browse code

fixing bitrate display if -acodec copy is used, patch by (Kareila <cokewench at yahoo dot com>)

Originally committed as revision 1074 to svn://svn.ffmpeg.org/ffmpeg/trunk

Kareila authored on 2002/10/27 04:23:22
Showing 1 changed files
... ...
@@ -699,7 +699,7 @@ void print_report(AVFormatContext **output_files,
699 699
         }
700 700
         /* compute min output value */
701 701
         pts = (double)ost->st->pts.val * os->pts_num / os->pts_den;
702
-        if (pts < ti1)
702
+        if ((pts < ti1) && (pts > 0))
703 703
             ti1 = pts;
704 704
     }
705 705
     if (ti1 < 0.01)