[vlc-commits] mpeg/es: dts: use VLC_DTS_HEADER_SIZE for probe size
Thomas Guillem
git at videolan.org
Fri Oct 28 18:03:00 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Oct 28 12:04:59 2016 +0200| [9e090ad892416ae1de25006ec79883f3675dd6ad] | committer: Thomas Guillem
mpeg/es: dts: use VLC_DTS_HEADER_SIZE for probe size
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e090ad892416ae1de25006ec79883f3675dd6ad
---
modules/demux/mpeg/es.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mpeg/es.c b/modules/demux/mpeg/es.c
index f2f287a..fe9ae84 100644
--- a/modules/demux/mpeg/es.c
+++ b/modules/demux/mpeg/es.c
@@ -1161,7 +1161,7 @@ static int DtsCheckSync( const uint8_t *p_peek, int *pi_samples )
VLC_UNUSED(pi_samples);
vlc_dts_header_t dts;
- if( vlc_dts_header_Parse( &dts, p_peek, 11 ) == VLC_SUCCESS
+ if( vlc_dts_header_Parse( &dts, p_peek, VLC_DTS_HEADER_SIZE ) == VLC_SUCCESS
&& dts.i_frame_size > 0 && dts.i_frame_size <= 8192 )
{
if( pi_samples )
@@ -1177,7 +1177,8 @@ static int DtsProbe( demux_t *p_demux, int64_t *pi_offset )
const char *ppsz_name[] = { "dts", NULL };
const int pi_wav[] = { WAVE_FORMAT_PCM, WAVE_FORMAT_DTS, WAVE_FORMAT_UNKNOWN };
- return GenericProbe( p_demux, pi_offset, ppsz_name, DtsCheckSync, 11, pi_wav, NULL );
+ return GenericProbe( p_demux, pi_offset, ppsz_name, DtsCheckSync,
+ VLC_DTS_HEADER_SIZE, pi_wav, NULL );
}
static int DtsInit( demux_t *p_demux )
{
More information about the vlc-commits
mailing list