[vlc-commits] demux: libmp4: fix iloc unitialized base offset

Francois Cartegnie git at videolan.org
Mon Nov 19 14:04:42 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Nov 16 19:40:21 2018 +0100| [4adabaf96b7ab9ca2c5d521703dbbb63853ae93c] | committer: Francois Cartegnie

demux: libmp4: fix iloc unitialized base offset

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4adabaf96b7ab9ca2c5d521703dbbb63853ae93c
---

 modules/demux/mp4/libmp4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 24781f497f..7e4ca4b093 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -4371,7 +4371,7 @@ static int MP4_ReadBox_iloc( stream_t *p_stream, MP4_Box_t *p_box )
         {
             case 4: MP4_GET4BYTES( p_data->p_items[i].i_base_offset ); break;
             case 8: MP4_GET8BYTES( p_data->p_items[i].i_base_offset ); break;
-            default: break;
+            default: p_data->p_items[i].i_base_offset = 0; break;
         }
 
         MP4_GET2BYTES( p_data->p_items[i].i_extent_count );



More information about the vlc-commits mailing list