aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-06-16 14:22:52 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-06-19 22:48:04 +0200
commita9901840079b156c88c6d9ad4a61bc6e7e9c6235 (patch)
treef1bc19c1fafa9fb87f219853a7c201f1302fdf8c
parent830695be366ff753a3f7b8dd97c10d3e6187d41c (diff)
downloadffmpeg-a9901840079b156c88c6d9ad4a61bc6e7e9c6235.tar.gz
lavf/mov: Do not fail hard for truncated stsz atoms.
Fixes ticket #6433.
-rw-r--r--libavformat/mov.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 0acf981aef..1011763641 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2841,7 +2841,8 @@ static int mov_read_stsz(MOVContext *c, AVIOContext *pb, MOVAtom atom)
if (ret < 0) {
av_freep(&sc->sample_sizes);
av_free(buf);
- return ret;
+ av_log(c->fc, AV_LOG_WARNING, "STSZ atom truncated\n");
+ return 0;
}
init_get_bits(&gb, buf, 8*num_bytes);