[FFmpeg-devel] [PATCH] mxfdec: support AVFMT_FLAG_IGNIDX.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Jan 5 22:18:26 CET 2012


This allow users to work around regressions introduced by index support
and helps with debugging.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
 libavformat/mxfdec.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 66af2e4..1498ebb 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -1529,6 +1529,9 @@ static int mxf_parse_handle_essence(MXFContext *mxf)
         /* remember where we were so we don't end up seeking further back than this */
         mxf->last_forward_tell = avio_tell(pb);
 
+        if (mxf->fc->flags & AVFMT_FLAG_IGNIDX)
+            return 0;
+
         if (!pb->seekable) {
             av_log(mxf->fc, AV_LOG_INFO, "file is not seekable - not parsing footer\n");
             return -1;
-- 
1.7.8.2



More information about the ffmpeg-devel mailing list