aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2016-02-22 18:34:01 -0600
committerMichael Niedermayer <michael@niedermayer.cc>2016-03-26 21:52:47 +0100
commit3b179b630253466b325b44fd6355a4c8d3548b62 (patch)
tree4191089ff75021152c78c6bd0cae72e03df842cc
parentbf8f2fae2ad8498496e21de82299c5d777b03d04 (diff)
downloadffmpeg-3b179b630253466b325b44fd6355a4c8d3548b62.tar.gz
lavf/mov: downgrade sidx errors to non-fatal warnings; fixes trac #5216
(cherry picked from commit 22dbc1caaf13e4bb17c9e0164a5b1ccaf490e428) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/mov.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index c5e0a1eb17..0408ad164f 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3666,7 +3666,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
@@ -3679,8 +3679,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;