Commit 22dbc1ca authored by Rodger Combs's avatar Rodger Combs

lavf/mov: downgrade sidx errors to non-fatal warnings; fixes trac #5216

parent 3617e69d
...@@ -3667,7 +3667,7 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom) ...@@ -3667,7 +3667,7 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom)
version = avio_r8(pb); version = avio_r8(pb);
if (version > 1) { if (version > 1) {
avpriv_request_sample(c->fc, "sidx version %u", version); avpriv_request_sample(c->fc, "sidx version %u", version);
return AVERROR_PATCHWELCOME; return 0;
} }
avio_rb24(pb); // flags avio_rb24(pb); // flags
...@@ -3680,8 +3680,8 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom) ...@@ -3680,8 +3680,8 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom)
} }
} }
if (!st) { if (!st) {
av_log(c->fc, AV_LOG_ERROR, "could not find corresponding track id %d\n", track_id); av_log(c->fc, AV_LOG_WARNING, "could not find corresponding track id %d\n", track_id);
return AVERROR_INVALIDDATA; return 0;
} }
sc = st->priv_data; sc = st->priv_data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment