[FFmpeg-devel] [PATCH] IFF: Add error checking to byterun1 decoder

Sebastian Vater cdgs.basty
Sun May 16 22:17:02 CEST 2010


Sebastian Vater a ?crit :
> Hello guys!
>
> As suggested by Ronald, I separated error checking in byterun1 decoder
> from the function merge patch.
>
> So this just patches latest iff-function-merge.patch in order to add
> error checking to byterun1 decompression routines by returning an
> negative number of bytes consumed.
>
> Besides this, I optimized the decode_byterun1 routine a bit since it can
> now assume that width is always > 0
>   

10l to me...just forgot to add the int err declaration.

Anyway, I used the chance to add an error message in case of byterun1
corrupted stream, too.
So please review this one.

-- 

Best regards,
                   :-) Basty/CDGS (-:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: iff-byterun1-error.patch
Type: text/x-patch
Size: 4506 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100516/8025fe0a/attachment.bin>



More information about the ffmpeg-devel mailing list