[FFmpeg-devel] [PATCH] Fix segfault when decoding corrupt mov (Closes issue 286)

Baptiste Coudurier baptiste.coudurier
Mon Dec 3 23:27:35 CET 2007


Hi Benoit,

Benoit Fouet wrote:
> Panagiotis Issaris wrote:
> 
>>+    if (!sc->stts_data) {
>>+        av_log(NULL, AV_LOG_ERROR, "error allocation memory for stts
> 
> atom\n");
> 
>>+        return -1;
>>+    }
>>
> 
> 
> AVERROR(ENOMEM), no ?
> 

A patch which returns AVERROR(ENOMEM) in all cases is welcome :)
In the mean time, fixed.

-- 
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