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
97c5499d
Commit
97c5499d
authored
Dec 07, 2009
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schroedinger: use VLC_TS_INVALID (refs #3135)
parent
76ed5901
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/codec/schroedinger.c
modules/codec/schroedinger.c
+4
-4
No files found.
modules/codec/schroedinger.c
View file @
97c5499d
...
...
@@ -111,7 +111,7 @@ static int OpenDecoder( vlc_object_t *p_this )
p_dec
->
p_sys
=
p_sys
;
p_sys
->
p_schro
=
p_schro
;
p_sys
->
p_format
=
NULL
;
p_sys
->
i_lastpts
=
-
1
;
p_sys
->
i_lastpts
=
VLC_TS_INVALID
;
p_sys
->
i_frame_pts_delta
=
0
;
/* Set output properties */
...
...
@@ -299,7 +299,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if
(
p_block
->
i_flags
&
BLOCK_FLAG_DISCONTINUITY
)
{
schro_decoder_reset
(
p_sys
->
p_schro
);
p_sys
->
i_lastpts
=
-
1
;
p_sys
->
i_lastpts
=
VLC_TS_INVALID
;
block_Release
(
p_block
);
*
pp_block
=
NULL
;
return
NULL
;
...
...
@@ -309,7 +309,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_schrobuffer
=
schro_buffer_new_with_data
(
p_block
->
p_buffer
,
p_block
->
i_buffer
);
p_schrobuffer
->
free
=
SchroBufferFree
;
p_schrobuffer
->
priv
=
p_block
;
if
(
p_block
->
i_pts
!=
VLC_TS_INVALID
)
{
if
(
p_block
->
i_pts
>
VLC_TS_INVALID
)
{
mtime_t
*
p_pts
=
malloc
(
sizeof
(
*
p_pts
)
);
if
(
p_pts
)
{
*
p_pts
=
p_block
->
i_pts
;
...
...
@@ -372,7 +372,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_pic
->
date
=
*
(
mtime_t
*
)
p_tag
->
value
;
schro_tag_free
(
p_tag
);
}
else
if
(
p_sys
->
i_lastpts
>
=
0
)
else
if
(
p_sys
->
i_lastpts
>
VLC_TS_INVALID
)
{
/* NB, this shouldn't happen since the packetizer does a
* very thorough job of inventing timestamps. The
...
...
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