vlc | branch: master | Francois Cartegnie <[email protected]> | Tue Feb 10 
19:02:01 2015 +0100| [cb4ea7cc766c1326ccd89412fab5e5621d4dd356] | committer: 
Francois Cartegnie

demux: mpeg: avoid false positives with WAVE/dts (fix #13866)

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

 modules/demux/mpeg/es.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/demux/mpeg/es.c b/modules/demux/mpeg/es.c
index e2b759d..f199f45 100644
--- a/modules/demux/mpeg/es.c
+++ b/modules/demux/mpeg/es.c
@@ -654,7 +654,12 @@ static int GenericProbe( demux_t *p_demux, int64_t 
*pi_offset,
             for( int t = 0; t < 1 + !!b_wav; t++ )
             {
                 if( t == 1 )
+                {
+                    if(!i_samples)
+                        break;
                     i_size = i_samples * 2 * 2;
+                }
+
                 if( i_skip + i_check_size + i_size <= i_peek )
                 {
                     b_ok = pf_check( &p_peek[i_skip+i_size], NULL ) >= 0;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to