]> git.sesse.net Git - ffmpeg/commitdiff
lavf/mov: downgrade sidx errors to non-fatal warnings; fixes trac #5216
authorRodger Combs <rodger.combs@gmail.com>
Tue, 23 Feb 2016 00:34:01 +0000 (18:34 -0600)
committerRodger Combs <rodger.combs@gmail.com>
Sun, 28 Feb 2016 21:00:34 +0000 (15:00 -0600)
libavformat/mov.c

index dd7890a39657a3c9b1ffdfe2104a3e2b6370caad..adf1fbe3476c3d37a354befac999d8a9fd4b3480 100644 (file)
@@ -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;