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
59df8439
Commit
59df8439
authored
May 23, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* es_out: avoid null dts/pts after *9/100 (with non null input values).
parent
b394e4a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/input/es_out.c
src/input/es_out.c
+3
-2
No files found.
src/input/es_out.c
View file @
59df8439
...
...
@@ -461,15 +461,16 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
p_pgrm
=
p_sys
->
p_input
->
stream
.
p_selected_program
;
}
/* +11 -> avoid null value with non null dts/pts */
if
(
p_block
->
i_dts
>
0
&&
p_pgrm
)
{
p_block
->
i_dts
=
input_ClockGetTS
(
p_input
,
p_pgrm
,
p_block
->
i_dts
*
9
/
100
);
input_ClockGetTS
(
p_input
,
p_pgrm
,
(
p_block
->
i_dts
+
11
)
*
9
/
100
);
}
if
(
p_block
->
i_pts
>
0
&&
p_pgrm
)
{
p_block
->
i_pts
=
input_ClockGetTS
(
p_input
,
p_pgrm
,
p_block
->
i_pts
*
9
/
100
);
input_ClockGetTS
(
p_input
,
p_pgrm
,
(
p_block
->
i_pts
+
11
)
*
9
/
100
);
}
}
...
...
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