[FFmpeg-devel] [PATCH] fix segfault in mxf demuxer

Nigel Touati-Evans nigel.touatievans at gmail.com
Mon Mar 21 12:06:57 CET 2011


Hi, I have an MXF file which causes ffmpeg to seg fault. My file has a
material track with two structural references, the first of which is
fine, and the second is not actually in the file (so
mxf_resolve_strong_ref returns null).

I have fixed decoding this file by changing the condition at the end
of the loop - it now breaks the loop once it finds a valid source
package rather than when it doesn't, and I've moved the error message
to be outside the loop if it failed to find anything at all.

I have also added a warning if there are source clips that might be
being ignored (previously all but the last clip would be ignored with
no warning, now all but the first valid clip will be ignored, and
there is a warning, which I think is better).

Nigel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mxfsourceclips.diff
Type: text/x-patch
Size: 1241 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110321/ad25ab95/attachment-0001.bin>


More information about the ffmpeg-devel mailing list