[vlc-commits] demux: libmp4: missing iloc implied values
Francois Cartegnie
git at videolan.org
Wed Jun 17 19:55:30 CEST 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jun 17 17:39:18 2020 +0200| [016f5b160ef6924b53b5acd11c1df50b0ed13491] | committer: Francois Cartegnie
demux: libmp4: missing iloc implied values
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=016f5b160ef6924b53b5acd11c1df50b0ed13491
---
modules/demux/mp4/libmp4.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index d7d8b6c426..7e2971d9fb 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -4492,20 +4492,20 @@ static int MP4_ReadBox_iloc( stream_t *p_stream, MP4_Box_t *p_box )
{
case 4: MP4_GET4BYTES( p_data->p_items[i].p_extents[j].i_extent_index ); break;
case 8: MP4_GET8BYTES( p_data->p_items[i].p_extents[j].i_extent_index ); break;
- default: break;
+ default: p_data->p_items[i].p_extents[j].i_extent_index = 0 ; break;
}
}
switch( p_data->i_offset_size )
{
case 4: MP4_GET4BYTES( p_data->p_items[i].p_extents[j].i_extent_offset ); break;
case 8: MP4_GET8BYTES( p_data->p_items[i].p_extents[j].i_extent_offset ); break;
- default: break;
+ default: p_data->p_items[i].p_extents[j].i_extent_offset = 0; break;
}
switch( p_data->i_length_size )
{
case 4: MP4_GET4BYTES( p_data->p_items[i].p_extents[j].i_extent_length ); break;
case 8: MP4_GET8BYTES( p_data->p_items[i].p_extents[j].i_extent_length ); break;
- default: break;
+ default: p_data->p_items[i].p_extents[j].i_extent_length = 0; break;
}
}
}
More information about the vlc-commits
mailing list