[Mplayer-cvslog] CVS: main/libmpcodecs vd_libmpeg2.c,1.5,1.6

Ivan Kalvachev iive at mplayer.dev.hu
Tue Mar 26 18:05:12 CET 2002


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

Modified Files:
	vd_libmpeg2.c 
Log Message:
ported back hack for interlaced mpeg2, without it mplayer draws whole frame for every field -100% slowdown

Index: vd_libmpeg2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_libmpeg2.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- vd_libmpeg2.c	16 Mar 2002 20:36:24 -0000	1.5
+++ vd_libmpeg2.c	26 Mar 2002 17:05:09 -0000	1.6
@@ -63,7 +63,9 @@
     } else {
 	mpi=mpcodecs_get_image(sh, MP_IMGTYPE_EXPORT, MP_IMGFLAG_DRAW_CALLBACK,
 	    sh->disp_w, sh->disp_h);
-	mpeg2_decode_data(sh->video_out, data, data+len,flags&3); // decode
+	if(
+	mpeg2_decode_data(sh->video_out, data, data+len,flags&3)==0 // decode
+	)return NULL;//hack for interlaced mpeg2
     }
     return mpi;
 }




More information about the MPlayer-cvslog mailing list