[vlc-commits] demux: libmp4: fix ReadBoxUsing function return check

Francois Cartegnie git at videolan.org
Fri Nov 16 14:55:48 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Nov 16 14:20:03 2018 +0100| [5020c54efe7f90a7a14452c703f088806b10eee2] | committer: Francois Cartegnie

demux: libmp4: fix ReadBoxUsing function return check

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

 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 eaf8246cc8..37953e43b0 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -5214,7 +5214,7 @@ static MP4_Box_t *MP4_ReadBoxUsing( stream_t *p_stream, MP4_Box_t *p_father,
     if( !p_box )
         return NULL;
 
-    if( MP4_ReadBox_function( p_stream, p_box ) != VLC_SUCCESS )
+    if( MP4_ReadBox_function( p_stream, p_box ) != 1 )
     {
         uint64_t i_end = p_box->i_pos + p_box->i_size;
         MP4_BoxFree( p_box );



More information about the vlc-commits mailing list