changeset 14179:f3d36778fe89

Handle raw yv12 video as I420 to fix some Broadcast 2000 created samples. patch by Reza Jelveh, approval by Roberto
author diego
date Sat, 18 Dec 2004 01:12:02 +0000
parents 69d9d9ec86da
children 6f40d266143a
files libmpdemux/demux_mov.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c	Fri Dec 17 22:33:30 2004 +0000
+++ b/libmpdemux/demux_mov.c	Sat Dec 18 01:12:02 2004 +0000
@@ -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)