[vlc-commits] demux: mpeg: avoid false positives with WAVE/dts (fix #13866)
Francois Cartegnie
git at videolan.org
Tue Feb 10 21:49:29 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | 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;
More information about the vlc-commits
mailing list