mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 01:02:33 +00:00
lavf/mov: Do not fail hard for truncated stsz atoms.
Fixes ticket #6433.
This commit is contained in:
parent
830695be36
commit
a990184007
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user