[MPlayer-users] .mov demux patch

Marek Zelem marek at terminus.sk
Mon Aug 18 19:37:24 CEST 2003


	Hello

  I have a digital camera which can produce .mov files. But mplayer
segfault on that files. I have found the reason. It seems that .mov file
produced by my camera is probably broken. But mplayer oposite to quicktime
player on windows or xanim on Linux can't handle it.
I make this simple patch to fix this problem.

	best regards

					Marek Zelem
--
  e-mail: marek at terminus.sk
  web: http://www.terminus.sk/~marek/
  pgp key: http://www.terminus.sk/~marek/gpg.txt
-------------- next part --------------
--- libmpdemux/demux_mov.c.orig	2003-08-17 02:44:46.000000000 +0200
+++ libmpdemux/demux_mov.c	2003-08-17 02:44:18.000000000 +0200
@@ -1418,9 +1418,13 @@
 		    case MOV_FOURCC('A','l','l','F'):
 		    default:
 		    {
+			if( udta_len>udta_size)
+				udta_len=udta_size;
+			{
 			char dump[udta_len-4];
 			stream_read(demuxer->stream, (char *)&dump, udta_len-4-4);
 			udta_size -= udta_len;
+			}
 		    }
 		}
 	    }


More information about the MPlayer-users mailing list