[vlc-devel] commit: Cleanup MP4 ftyp ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Mar 16 22:30:21 CET 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Sun Mar 16 23:16:58 2008 +0200| [cd74f7f84a46eb1e8468ae24a3b723a77c68ab67]
Cleanup MP4 ftyp
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cd74f7f84a46eb1e8468ae24a3b723a77c68ab67
---
modules/demux/mp4/libmp4.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index e96fdd0..2ab2dc9 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -369,6 +369,7 @@ static int MP4_ReadBoxSkip( stream_t *p_stream, MP4_Box_t *p_box )
static int MP4_ReadBox_ftyp( stream_t *p_stream, MP4_Box_t *p_box )
{
+ unsigned code = 0;
MP4_READBOX_ENTER( MP4_Box_data_ftyp_t );
MP4_GETFOURCC( p_box->data.p_ftyp->i_major_brand );
@@ -382,7 +383,7 @@ static int MP4_ReadBox_ftyp( stream_t *p_stream, MP4_Box_t *p_box )
sizeof(uint32_t));
if( tab == NULL )
- p_box->data.p_ftyp->i_compatible_brands_count = 0;
+ goto error;
for( i =0; i < p_box->data.p_ftyp->i_compatible_brands_count; i++ )
{
@@ -393,8 +394,10 @@ static int MP4_ReadBox_ftyp( stream_t *p_stream, MP4_Box_t *p_box )
{
p_box->data.p_ftyp->i_compatible_brands = NULL;
}
+ code = 1;
- MP4_READBOX_EXIT( 1 );
+error:
+ MP4_READBOX_EXIT( code );
}
static void MP4_FreeBox_ftyp( MP4_Box_t *p_box )
More information about the vlc-devel
mailing list