avformat/mov: Break out early if chunk_count is 0 in mov_build_index()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 15 May 2018 15:06:59 +0000 (17:06 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 20 May 2018 23:38:56 +0000 (01:38 +0200)
commit56e76bd0579cc7f7b28860885d9e569a39daf41b
tree6adfb4af0dd09aed588683805e4e926d65416b22
parentfac5849915973ac09286d2c027237bfd99cc27fe
avformat/mov: Break out early if chunk_count is 0 in mov_build_index()

Without this some operations might overflow (undefined behavior)
even though the index adding loop would never execute

No testcase known

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c