avformat/mov: validate chunk_count vs stsc_data
Bad content may contain stsc boxes with a first_chunk index that exceeds stco.entries (chunk_count). This ammends the existing check to include cases where chunk_count == 0. It also patches up the case when stsc refers to unknown chunks, but stts has no samples (so we can simply ignore stsc). Signed-off-by:Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 1c15449c) Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
Showing
Please
register
or
sign in
to comment