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
62538aea
Commit
62538aea
authored
Dec 07, 2009
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rawvideo: use VLC_TS_INVALID (refs #3135)
parent
6e2213ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/codec/rawvideo.c
modules/codec/rawvideo.c
+4
-3
No files found.
modules/codec/rawvideo.c
View file @
62538aea
...
...
@@ -205,7 +205,8 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_block
=
*
pp_block
;
if
(
!
p_block
->
i_pts
&&
!
p_block
->
i_dts
&&
!
date_Get
(
&
p_sys
->
pts
)
)
if
(
p_block
->
i_pts
<=
VLC_TS_INVALID
&&
p_block
->
i_dts
<=
VLC_TS_INVALID
&&
!
date_Get
(
&
p_sys
->
pts
)
)
{
/* We've just started the stream, wait for the first PTS. */
block_Release
(
p_block
);
...
...
@@ -213,11 +214,11 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
}
/* Date management: If there is a pts avaliable, use that. */
if
(
p_block
->
i_pts
)
if
(
p_block
->
i_pts
>
VLC_TS_INVALID
)
{
date_Set
(
&
p_sys
->
pts
,
p_block
->
i_pts
);
}
else
if
(
p_block
->
i_dts
)
else
if
(
p_block
->
i_dts
>
VLC_TS_INVALID
)
{
/* NB, davidf doesn't quite agree with this in general, it is ok
* for rawvideo since it is in order (ie pts=dts), however, it
...
...
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