diff options
author | Marton Balint | 2018-06-24 22:08:22 +0200 |
---|---|---|
committer | Marton Balint | 2018-07-04 21:52:21 +0200 |
commit | e37741d26a1ef2d07e2ccf4e1bc9699a12576111 (patch) | |
tree | 4562110a8474942286a19227da00326bdd53e15d /libavformat/mxfdec.c | |
parent | 5861bc9e75694b0c2d35708efceca0756ce6d77e (diff) |
avformat/mxfdec: add support for opAtom without index
Clip wrapped code is capable of doing some magic for such files.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r-- | libavformat/mxfdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 309419bbc2..b76beb962f 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -3125,7 +3125,7 @@ static int mxf_read_header(AVFormatContext *s) /* TODO: look up which IndexSID to use via EssenceContainerData */ av_log(mxf->fc, AV_LOG_INFO, "got %i index tables - only the first one (IndexSID %i) will be used\n", mxf->nb_index_tables, mxf->index_tables[0].index_sid); - } else if (mxf->nb_index_tables == 0 && mxf->op == OPAtom) { + } else if (mxf->nb_index_tables == 0 && mxf->op == OPAtom && (s->error_recognition & AV_EF_EXPLODE)) { av_log(mxf->fc, AV_LOG_ERROR, "cannot demux OPAtom without an index\n"); ret = AVERROR_INVALIDDATA; goto fail; |