aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2016-02-22 18:34:01 -0600
committerRodger Combs <rodger.combs@gmail.com>2016-02-28 15:00:34 -0600
commit22dbc1caaf13e4bb17c9e0164a5b1ccaf490e428 (patch)
tree15c40c3222c6d7f81b7b7dc8e14f1129e13623a0 /libavformat/mov.c
parent3617e69d50dd9dd07b5011dfb9477a9d1a630354 (diff)
downloadffmpeg-22dbc1caaf13e4bb17c9e0164a5b1ccaf490e428.tar.gz
lavf/mov: downgrade sidx errors to non-fatal warnings; fixes trac #5216
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index dd7890a396..adf1fbe347 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3667,7 +3667,7 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom)
version = avio_r8(pb);
if (version > 1) {
avpriv_request_sample(c->fc, "sidx version %u", version);
- return AVERROR_PATCHWELCOME;
+ return 0;
}
avio_rb24(pb); // flags
@@ -3680,8 +3680,8 @@ static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom)
}
}
if (!st) {
- av_log(c->fc, AV_LOG_ERROR, "could not find corresponding track id %d\n", track_id);
- return AVERROR_INVALIDDATA;
+ av_log(c->fc, AV_LOG_WARNING, "could not find corresponding track id %d\n", track_id);
+ return 0;
}
sc = st->priv_data;