fixing vstats so B frames are shown as B and not P

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8066 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2002-11-03 00:15:55 +00:00
parent 51f58fd351
commit b2f4966a91
1 changed files with 14 additions and 1 deletions

View File

@ -569,7 +569,20 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
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;
}
//--