Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
29c4138d
Commit
29c4138d
authored
Nov 12, 2012
by
Jean-Baptiste Kempf
Browse files
DTS in wav: check frame size
Close #7282
parent
ada0afff
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/demux/mpeg/es.c
View file @
29c4138d
...
@@ -920,8 +920,22 @@ static int A52Init( demux_t *p_demux )
...
@@ -920,8 +920,22 @@ static int A52Init( demux_t *p_demux )
*****************************************************************************/
*****************************************************************************/
static
int
DtsCheckSync
(
const
uint8_t
*
p_peek
,
int
*
pi_samples
)
static
int
DtsCheckSync
(
const
uint8_t
*
p_peek
,
int
*
pi_samples
)
{
{
/* TODO return frame size for robustness */
unsigned
int
i_sample_rate
,
i_bit_rate
,
i_frame_length
,
i_audio_mode
;
return
SyncCode
(
p_peek
);
bool
b_dts_hd
;
VLC_UNUSED
(
pi_samples
);
int
i_frame_size
=
GetSyncInfo
(
p_peek
,
&
b_dts_hd
,
&
i_sample_rate
,
&
i_bit_rate
,
&
i_frame_length
,
&
i_audio_mode
);
if
(
i_frame_size
!=
VLC_EGENERIC
&&
i_frame_size
<=
8192
)
return
VLC_SUCCESS
;
else
return
VLC_EGENERIC
;
}
}
static
int
DtsProbe
(
demux_t
*
p_demux
,
int64_t
*
pi_offset
)
static
int
DtsProbe
(
demux_t
*
p_demux
,
int64_t
*
pi_offset
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment