Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 8065:a3e7c0e16d5b
fixing vstats so B frames are shown as B and not P
author | michael |
---|---|
date | Sun, 03 Nov 2002 00:15:55 +0000 |
parents | a57c1fc0c2fc |
children | 7018fadf1a94 |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Sat Nov 02 23:33:51 2002 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sun Nov 03 00:15:55 2002 +0000 @@ -569,7 +569,20 @@ 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); - fprintf(fvstats, "type= %c\n", sh->ds->flags&1 ? 'I' : 'P'); + switch(avctx->pict_type){ + case I_TYPE: + fprintf(fvstats, "type= I\n"); + break; + case P_TYPE: + fprintf(fvstats, "type= P\n"); + break; + case S_TYPE: + fprintf(fvstats, "type= S\n"); + break; + case B_TYPE: + fprintf(fvstats, "type= B\n"); + break; + } break; } //--