[MPlayer-users] .mov demux patch

Moritz Bunkus moritz at bunkus.org
Mon Aug 18 19:49:40 CEST 2003


Heya.

Please note that patches should go to the mplayer-dev-eng mailing list
 :)

> --- 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;
> +			}
>  		    }
>  		}
>  	    }

Why the parenthesis? They don't serve any purpose here - neither do they
belong to the 'if' nor to an 'else'. This patch is trivial enough, but
I'd like to be know if you wanted them to mean something.

-- 
 ==> Ciao, Mosu (Moritz Bunkus)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20030818/87bfe6b3/attachment.pgp>


More information about the MPlayer-users mailing list