changeset 6833:a709a7662cd1

Add type= and fix a minor typing difference from ffmpeg (now encoding (ffmpeg) and playback (mplayer) differ just on one of 1438lines - 0.1error in rounding ;)
author atmos4
date Sun, 28 Jul 2002 21:56:18 +0000
parents 54578e5a8050
children 2d7dfcc79651
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Sun Jul 28 21:30:09 2002 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sun Jul 28 21:56:18 2002 +0000
@@ -413,11 +413,10 @@
         all_frametime+=sh->frametime;
         fprintf(fvstats, "frame= %5d q= %2d f_size= %6d s_size= %8.0fkB ",
             ++frame_number, avctx->quality, len, (double)all_len/1024);
-        fprintf(fvstats, "time= %0.3f br= %7.1fkbit/s avg_br= %7.1fkbit/s\n",
+        fprintf(fvstats, "time= %0.3f br= %7.1fkbits/s avg_br= %7.1fkbits/s ",
            all_frametime, (double)(len*8)/sh->frametime/1000.0,
            (double)(all_len*8)/all_frametime/1000.0);
-        // FIXME key_frame isn't set by lavc on decoding! ::atmos
-        //fprintf(fvstats, "type= %c\n", avctx->key_frame == 1 ? 'I' : 'P');
+        fprintf(fvstats, "type= %c\n", sh->ds->flags&1 ? 'I' : 'P');
         break;
     }
 //--