Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
e79dec99
Commit
e79dec99
authored
Feb 08, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/dts.c: more fixes.
parent
ce491a51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
modules/demux/dts.c
modules/demux/dts.c
+9
-12
No files found.
modules/demux/dts.c
View file @
e79dec99
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* dts.c : raw DTS stream input module for vlc
* dts.c : raw DTS stream input module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: dts.c,v 1.
6 2004/02/06 15:11:39 hartma
n Exp $
* $Id: dts.c,v 1.
7 2004/02/08 16:48:11 gbazi
n Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
*
...
@@ -121,15 +121,15 @@ static int Open( vlc_object_t * p_this )
...
@@ -121,15 +121,15 @@ static int Open( vlc_object_t * p_this )
{
{
i_peek
+=
GetDWLE
(
p_peek
+
i_peek
-
4
)
+
8
;
i_peek
+=
GetDWLE
(
p_peek
+
i_peek
-
4
)
+
8
;
}
}
/* TODO: should check wave format and sample_rate */
/* TODO: should check wave format and sample_rate */
/* Some DTS wav files don't begin with a sync code so we do a more
/* Some DTS wav files don't begin with a sync code so we do a more
* extensive search */
* extensive search */
if
(
input_Peek
(
p_input
,
&
p_peek
,
i_peek
+
DTS_PACKET_SIZE
)
==
if
(
input_Peek
(
p_input
,
&
p_peek
,
i_peek
+
DTS_PACKET_SIZE
*
2
)
==
i_peek
+
DTS_PACKET_SIZE
)
i_peek
+
DTS_PACKET_SIZE
*
2
)
{
{
int
i_size
=
i_peek
+
DTS_PACKET_SIZE
-
DTS_MAX_HEADER_SIZE
;
int
i_size
=
i_peek
+
DTS_PACKET_SIZE
*
2
-
DTS_MAX_HEADER_SIZE
;
while
(
i_peek
<
i_size
)
while
(
i_peek
<
i_size
)
{
{
...
@@ -143,8 +143,8 @@ static int Open( vlc_object_t * p_this )
...
@@ -143,8 +143,8 @@ static int Open( vlc_object_t * p_this )
}
}
/* Have a peep at the show. */
/* Have a peep at the show. */
if
(
input_Peek
(
p_input
,
&
p_peek
,
i_peek
+
DTS_MAX_HEADER_SIZE
)
<
if
(
input_Peek
(
p_input
,
&
p_peek
,
i_peek
+
DTS_MAX_HEADER_SIZE
*
2
)
<
i_peek
+
DTS_MAX_HEADER_SIZE
)
i_peek
+
DTS_MAX_HEADER_SIZE
*
2
)
{
{
/* Stream too short */
/* Stream too short */
msg_Warn
(
p_input
,
"cannot peek()"
);
msg_Warn
(
p_input
,
"cannot peek()"
);
...
@@ -240,18 +240,15 @@ static int Demux( input_thread_t * p_input )
...
@@ -240,18 +240,15 @@ static int Demux( input_thread_t * p_input )
}
}
if
(
p_sys
->
b_start
)
if
(
p_sys
->
b_start
)
{
p_block_in
->
i_pts
=
p_block_in
->
i_dts
=
1
;
p_block_in
->
i_pts
=
p_block_in
->
i_dts
=
1
;
p_sys
->
b_start
=
VLC_FALSE
;
}
else
else
{
p_block_in
->
i_pts
=
p_block_in
->
i_dts
=
0
;
p_block_in
->
i_pts
=
p_block_in
->
i_dts
=
0
;
}
while
(
(
p_block_out
=
p_sys
->
p_packetizer
->
pf_packetize
(
while
(
(
p_block_out
=
p_sys
->
p_packetizer
->
pf_packetize
(
p_sys
->
p_packetizer
,
&
p_block_in
))
)
p_sys
->
p_packetizer
,
&
p_block_in
))
)
{
{
p_sys
->
b_start
=
VLC_FALSE
;
while
(
p_block_out
)
while
(
p_block_out
)
{
{
block_t
*
p_next
=
p_block_out
->
p_next
;
block_t
*
p_next
=
p_block_out
->
p_next
;
...
...
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