From 1e6999933478bca298ef92fe05e4224385bfd697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Tue, 13 Oct 2009 08:08:10 +0000 Subject: [PATCH] MXF: simply ignore tracks that are invalid due to not having a valid Sequence part instead of failing completely. This partly fixes issue 1470 (broken files created by BBC ingex recorder). Originally committed as revision 20221 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mxfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 7f6d439d39..a815c60ea7 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -690,7 +690,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) if (!(material_track->sequence = mxf_resolve_strong_ref(mxf, &material_track->sequence_ref, Sequence))) { av_log(mxf->fc, AV_LOG_ERROR, "could not resolve material track sequence strong ref\n"); - return -1; + continue; } /* TODO: handle multiple source clips */