[FFmpeg-devel] [PATCH] Fix segfault when decoding corrupt mov (issue 285)
Baptiste Coudurier
baptiste.coudurier
Mon Dec 3 23:23:21 CET 2007
Panagiotis Issaris wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> The attached patch fixes a segfault when decoding a corrupt mov file.
> The crash occurred because an error code was being ignored.
>
> With friendly regards,
> Takis
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHVDJu9kOxLuzz4CkRAqAUAJ9VyHjXdXK7s7pPke3d1sii4C5fFACfVIxU
> U+axObpBm+CIUZTKeW2P8Ls=
> =EopN
> -----END PGP SIGNATURE-----
>
>
> ------------------------------------------------------------------------
>
> Index: libavformat/mov.c
> ===================================================================
> --- libavformat/mov.c (revision 11160)
> +++ libavformat/mov.c (working copy)
> @@ -353,7 +353,7 @@
> c->found_moov=1;
> if(c->found_mdat)
> return 1; /* found both, just go */
> - return 0; /* now go for mdat */
> + return err; /* now go for mdat */
> }
>
Fixed a bit differently.
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A. http://www.smartjog.com
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312
More information about the ffmpeg-devel
mailing list