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
0e6740c5
Commit
0e6740c5
authored
Dec 20, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used VLC_TS_INVALID/0 in NUV demuxer.
parent
360fbdaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/demux/nuv.c
modules/demux/nuv.c
+8
-6
No files found.
modules/demux/nuv.c
View file @
0e6740c5
...
...
@@ -389,18 +389,20 @@ static int Demux( demux_t *p_demux )
if
(
(
p_data
=
stream_Block
(
p_demux
->
s
,
fh
.
i_length
)
)
==
NULL
)
return
0
;
p_data
->
i_dts
=
(
int64_t
)
fh
.
i_timecode
*
1000
;
p_data
->
i_pts
=
(
fh
.
i_type
==
'V'
)
?
0
:
p_data
->
i_dts
;
p_data
->
i_dts
=
VLC_TS_0
+
(
int64_t
)
fh
.
i_timecode
*
1000
;
p_data
->
i_pts
=
(
fh
.
i_type
==
'V'
)
?
VLC_TS_INVALID
:
p_data
->
i_dts
;
/* only add keyframes to index */
if
(
!
fh
.
i_keyframe
&&
!
p_sys
->
b_index
)
demux_IndexAppend
(
&
p_sys
->
idx
,
p_data
->
i_dts
,
stream_Tell
(
p_demux
->
s
)
-
NUV_FH_SIZE
);
demux_IndexAppend
(
&
p_sys
->
idx
,
p_data
->
i_dts
-
VLC_TS_0
,
stream_Tell
(
p_demux
->
s
)
-
NUV_FH_SIZE
);
/* */
if
(
p_
data
->
i_dts
>
p_sys
->
i_pcr
)
if
(
p_
sys
->
i_pcr
<
0
||
p_sys
->
i_pcr
<
p_data
->
i_dts
-
VLC_TS_0
)
{
p_sys
->
i_pcr
=
p_data
->
i_dts
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_pcr
);
p_sys
->
i_pcr
=
p_data
->
i_dts
-
VLC_TS_0
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
VLC_TS_0
+
p_sys
->
i_pcr
);
}
if
(
fh
.
i_type
==
'A'
&&
p_sys
->
p_es_audio
)
...
...
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