[Mplayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.66,1.67

Michael Niedermayer CVS michael at mplayerhq.hu
Sun Nov 3 01:16:11 CET 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv25334

Modified Files:
	vd_ffmpeg.c 
Log Message:
fixing vstats so B frames are shown as B and not P


Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- vd_ffmpeg.c	30 Oct 2002 20:50:10 -0000	1.66
+++ vd_ffmpeg.c	3 Nov 2002 00:15:55 -0000	1.67
@@ -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;
     }
 //--




More information about the MPlayer-cvslog mailing list