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

Tomas Härdin tomas.hardin at codemill.se
Mon Mar 18 09:55:08 CET 2013

On Wed, 2013-03-06 at 16:37 +0000, Jason Livingston wrote:
> 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.

I dunno, the patch looks a little suspicious. Most files I work with do
indeed only have one body partition, so this is probably not the real
issue. I'll try and have a closer look later today.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130318/bfbe1373/attachment.asc>

More information about the ffmpeg-devel mailing list