]> granicus.if.org Git - libx264/commitdiff
* encoder/encoder.c: kb/s with k=1000 (more consistant). Patch by Loren
authorLaurent Aimar <fenrir@videolan.org>
Tue, 17 Aug 2004 20:03:46 +0000 (20:03 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 17 Aug 2004 20:03:46 +0000 (20:03 +0000)
Merritt <lorenm AT u DOT washington DOT edu>

git-svn-id: svn://svn.videolan.org/x264/trunk@33 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/encoder.c

index dc0250abc0bc4d4354ab57e7ea9eada4994c75fb..896913099d286f3fc911edfbba51bac478643027 100644 (file)
@@ -1326,7 +1326,7 @@ void    x264_encoder_close  ( x264_t *h )
 
                  x264_psnr( h->stat.i_sqe_global[SLICE_TYPE_I] + h->stat.i_sqe_global[SLICE_TYPE_P]+ h->stat.i_sqe_global[SLICE_TYPE_B],
                             i_count * i_yuv_size ),
-                 fps * 8*(h->stat.i_slice_size[SLICE_TYPE_I]+h->stat.i_slice_size[SLICE_TYPE_P]+h->stat.i_slice_size[SLICE_TYPE_B]) / i_count / 1024,
+                 fps * 8*(h->stat.i_slice_size[SLICE_TYPE_I]+h->stat.i_slice_size[SLICE_TYPE_P]+h->stat.i_slice_size[SLICE_TYPE_B]) / i_count / 1000,
                  (double)1000000.0 * (double)i_count / (double)i_mtime_encode_frame );
     }
 #endif