lavf/mov: Do not fail hard for truncated stsz atoms.

Fixes ticket #6433.
This commit is contained in:
Carl Eugen Hoyos 2018-06-16 14:22:52 +02:00
parent 830695be36
commit a990184007

View File

@ -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);