Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
29c4138d
Commit
29c4138d
authored
Nov 12, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DTS in wav: check frame size
Close #7282
parent
ada0afff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
modules/demux/mpeg/es.c
modules/demux/mpeg/es.c
+16
-2
No files found.
modules/demux/mpeg/es.c
View file @
29c4138d
...
...
@@ -920,8 +920,22 @@ static int A52Init( demux_t *p_demux )
*****************************************************************************/
static
int
DtsCheckSync
(
const
uint8_t
*
p_peek
,
int
*
pi_samples
)
{
/* TODO return frame size for robustness */
return
SyncCode
(
p_peek
);
unsigned
int
i_sample_rate
,
i_bit_rate
,
i_frame_length
,
i_audio_mode
;
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
)
...
...
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