[vlc-commits] demux: mp4: fix stsd v1 regression
    Francois Cartegnie 
    git at videolan.org
       
    Mon Mar  8 14:59:19 UTC 2021
    
    
  
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Mar  8 15:55:50 2021 +0100| [c8a52e974e00fcf9cb6b70df26cdafde85eeb6a0] | committer: Francois Cartegnie
demux: mp4: fix stsd v1 regression
refs #25481
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c8a52e974e00fcf9cb6b70df26cdafde85eeb6a0
---
 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 4d01935699..ea50609298 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -2827,7 +2827,7 @@ static int MP4_ReadBox_stsd( stream_t *p_stream, MP4_Box_t *p_box )
         MP4_READBOX_EXIT( 0 );
 
     MP4_GETVERSIONFLAGS( p_box->data.p_lcont );
-    if( p_box->data.p_lcont->i_version != 0 )
+    if( p_box->data.p_lcont->i_version > 1 )
         MP4_READBOX_EXIT( 0 );
     MP4_GET4BYTES( p_box->data.p_lcont->i_entry_count );
 
    
    
More information about the vlc-commits
mailing list