[MPlayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.109,1.110

Diego Biurrun CVS syncmail at mplayerhq.hu
Sat Dec 18 02:12:05 CET 2004


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv8397/libmpdemux

Modified Files:
	demux_mov.c 
Log Message:
Handle raw yv12 video as I420 to fix some Broadcast 2000 created samples.
patch by Reza Jelveh, approval by Roberto


Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -r1.109 -r1.110
--- demux_mov.c	15 Nov 2004 15:04:57 -0000	1.109
+++ demux_mov.c	18 Dec 2004 01:12:02 -0000	1.110
@@ -629,6 +629,9 @@
 		    off_t pos=stream_tell(demuxer->stream);
 		    off_t len=stream_read_dword(demuxer->stream);
 		    unsigned int fourcc=stream_read_dword_le(demuxer->stream);
+		    /* some files created with Broadcast 2000 (e.g. ilacetest.mov)
+		       contain raw I420 video but have a yv12 fourcc */
+		    if(fourcc==mmioFOURCC('y','v','1','2')) fourcc=mmioFOURCC('I','4','2','0');
 		    if(len<8) break; // error
 		    mp_msg(MSGT_DEMUX,MSGL_V,"MOV: %*s desc #%d: %.4s  (%d bytes)\n",level,"",i,&fourcc,len-16);
 		    if(fourcc!=trak->fourcc && i)




More information about the MPlayer-cvslog mailing list