Skip to content
Snippets Groups Projects
Commit e37741d2 authored by Marton Balint's avatar Marton Balint
Browse files

avformat/mxfdec: add support for opAtom without index


Clip wrapped code is capable of doing some magic for such files.

Signed-off-by: default avatarMarton Balint <cus@passwd.hu>
parent 5861bc9e
No related branches found
No related tags found
No related merge requests found
...@@ -3125,7 +3125,7 @@ static int mxf_read_header(AVFormatContext *s) ...@@ -3125,7 +3125,7 @@ static int mxf_read_header(AVFormatContext *s)
/* TODO: look up which IndexSID to use via EssenceContainerData */ /* 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", 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); 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"); av_log(mxf->fc, AV_LOG_ERROR, "cannot demux OPAtom without an index\n");
ret = AVERROR_INVALIDDATA; ret = AVERROR_INVALIDDATA;
goto fail; goto fail;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment