libmp4: sidx: Return early if there are no items in the box
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 8 Dec 2017 13:00:41 +0000 (14:00 +0100)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 8 Dec 2017 13:01:48 +0000 (14:01 +0100)
commit45aee180d61c01050f0fb916085e49b3051d5ac1
tree30b7b498b10c265e1248aaf541d829430abfd582
parent385765703e43f9c91ff8789ce303cc0822b7c165
libmp4: sidx: Return early if there are no items in the box

This also fixes a buffer overrun when MP4_VERBOSE is defined and i_count
is 0
modules/demux/mp4/libmp4.c