aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_swaprect.c
diff options
context:
space:
mode:
authorDale Curtis <dalecurtis@chromium.org>2017-07-31 13:44:22 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2017-09-01 00:56:32 +0200
commitf1e47f87131dd7c3718496b83911e17586e26e80 (patch)
tree6fbd5bfe220d76b13b95ff9b1ac633d00a22aa17 /libavfilter/vf_swaprect.c
parent1a0d9b503d2e9c4278d6e93d40873dff9d191a25 (diff)
downloadffmpeg-f1e47f87131dd7c3718496b83911e17586e26e80.tar.gz
avformat/mov: Bail when invalid sample data is present.
ctts data in ffmpeg relies on the index entries array to be 1:1 with samples... yet sc->sample_count can be read directly from the 'stsz' box and index entries are only generated if a chunk count has been read from 'stco' box. Ensure that if sc->sample_count > 0, sc->chunk_count is too as a basic sanity check. Additionally we need to check that after the index is built we have the right number of entries, so we also check in mov_read_trun() that sc->sample_count == st->nb_index_entries. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/vf_swaprect.c')
0 files changed, 0 insertions, 0 deletions