Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
56e61206
Commit
56e61206
authored
Dec 19, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used VLC_TS_INVALID in avformat demuxer.
parent
d74e28e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/demux/avformat/demux.c
modules/demux/avformat/demux.c
+4
-4
No files found.
modules/demux/avformat/demux.c
View file @
56e61206
...
...
@@ -446,11 +446,11 @@ static int Demux( demux_t *p_demux )
(
p_sys
->
ic
->
start_time
*
1000000
/
AV_TIME_BASE
)
:
0
;
p_frame
->
i_dts
=
(
pkt
.
dts
==
(
int64_t
)
AV_NOPTS_VALUE
)
?
0
:
(
pkt
.
dts
)
*
1000000
*
VLC_TS_INVALID
:
(
pkt
.
dts
)
*
1000000
*
p_stream
->
time_base
.
num
/
p_stream
->
time_base
.
den
-
i_start_time
;
p_frame
->
i_pts
=
(
pkt
.
pts
==
(
int64_t
)
AV_NOPTS_VALUE
)
?
0
:
(
pkt
.
pts
)
*
1000000
*
VLC_TS_INVALID
:
(
pkt
.
pts
)
*
1000000
*
p_stream
->
time_base
.
num
/
p_stream
->
time_base
.
den
-
i_start_time
;
if
(
pkt
.
duration
>
0
)
...
...
@@ -463,14 +463,14 @@ static int Demux( demux_t *p_demux )
{
/* Add here notoriously bugged file formats/samples regarding PTS */
if
(
!
strcmp
(
p_sys
->
fmt
->
name
,
"flv"
)
)
p_frame
->
i_pts
=
0
;
p_frame
->
i_pts
=
VLC_TS_INVALID
;
}
#ifdef AVFORMAT_DEBUG
msg_Dbg
(
p_demux
,
"tk[%d] dts=%"
PRId64
" pts=%"
PRId64
,
pkt
.
stream_index
,
p_frame
->
i_dts
,
p_frame
->
i_pts
);
#endif
if
(
p
kt
.
dts
>
0
&&
if
(
p
_frame
->
i_dts
>
VLC_TS_INVALID
&&
(
pkt
.
stream_index
==
p_sys
->
i_pcr_tk
||
p_sys
->
i_pcr_tk
<
0
)
)
{
p_sys
->
i_pcr_tk
=
pkt
.
stream_index
;
...
...
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