mirror of https://github.com/mpv-player/mpv
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:
parent
51f58fd351
commit
b2f4966a91
|
@ -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;
|
||||
}
|
||||
//--
|
||||
|
|
Loading…
Reference in New Issue