[vlc-devel] commit: Increased probing size for ac3/dts in wav (close #3298). ( Laurent Aimar )
git version control
git at videolan.org
Sun Feb 14 16:32:48 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Feb 14 16:28:17 2010 +0100| [3c65c1560c4cf74aa33eb2848bc950b5c83a517f] | committer: Laurent Aimar
Increased probing size for ac3/dts in wav (close #3298).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c65c1560c4cf74aa33eb2848bc950b5c83a517f
---
modules/demux/mpeg/es.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/demux/mpeg/es.c b/modules/demux/mpeg/es.c
index 0d63345..98fca75 100644
--- a/modules/demux/mpeg/es.c
+++ b/modules/demux/mpeg/es.c
@@ -529,10 +529,9 @@ static int GenericProbe( demux_t *p_demux, int64_t *pi_offset,
/* peek the begining
* It is common that wav files have some sort of garbage at the begining
- * We suppose that 8000 will be larger than any frame (for which pf_check
- * return a size).
+ * We will accept probing 0.5s of data in this case.
*/
- const int i_probe = i_skip + i_check_size + 8000 + ( b_wav ? 8000 : 0);
+ const int i_probe = i_skip + i_check_size + 8000 + ( b_wav ? (44000/2*2*2) : 0);
const int i_peek = stream_Peek( p_demux->s, &p_peek, i_probe );
if( i_peek < i_skip + i_check_size )
{
More information about the vlc-devel
mailing list