[FFmpeg-devel] [PATCH] lavf/mxfdec.c: fix MXF essence body offsets when only 1 body partition

Jason Livingston jason at cpcweb.com
Wed Mar 6 17:37:57 CET 2013


I was having trouble with some Avid OP-Atom MXF files that contain only 1 essence track and only 1 body partition with all the frames.  After the first call to av_read_frame(), it would return AVERROR_INVALIDDATA from mxf_absolute_bodysid_offset():
[mxf @ xxx] failed to find absolute offset of 100 in BodySID 1 - partial file?

The attached patch fixes this case which is probably pretty rare, but it shouldn't negatively affect anything else.

Unfortunately I can't distribute my sample file but I could probably construct one if necessary.

Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavf-mxfdec.c-fix-MXF-essence-body-offsets-when-only.patch
Type: application/octet-stream
Size: 1250 bytes
Desc: 0001-lavf-mxfdec.c-fix-MXF-essence-body-offsets-when-only.patch
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130306/3036a018/attachment.obj>


More information about the ffmpeg-devel mailing list