Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
4866d8c1
Commit
4866d8c1
authored
Apr 26, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small codingstyle cleanup
parent
91b59307
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+7
-6
No files found.
modules/stream_out/transcode.c
View file @
4866d8c1
...
...
@@ -2129,7 +2129,7 @@ static int transcode_video_process( sout_stream_t *p_stream,
while
(
(
p_pic
=
id
->
p_decoder
->
pf_decode_video
(
id
->
p_decoder
,
&
in
))
)
{
subpicture_t
*
p_subpic
=
0
;
subpicture_t
*
p_subpic
=
NULL
;
if
(
p_input
)
stats_UpdateInteger
(
p_input
,
p_input
->
p
->
counters
.
p_decoded_video
,
1
,
NULL
);
...
...
@@ -2166,7 +2166,7 @@ static int transcode_video_process( sout_stream_t *p_stream,
/* Set the pts of the frame being encoded */
p_pic
->
date
=
i_pts
;
if
(
i_video_drift
<
i_master_drift
-
50000
)
if
(
i_video_drift
<
(
i_master_drift
-
50000
)
)
{
#if 0
msg_Dbg( p_stream, "dropping frame (%i)",
...
...
@@ -2175,7 +2175,7 @@ static int transcode_video_process( sout_stream_t *p_stream,
p_pic
->
pf_release
(
p_pic
);
continue
;
}
else
if
(
i_video_drift
>
i_master_drift
+
50000
)
else
if
(
i_video_drift
>
(
i_master_drift
+
50000
)
)
{
#if 0
msg_Dbg( p_stream, "adding frame (%i)",
...
...
@@ -2387,7 +2387,8 @@ static int transcode_video_process( sout_stream_t *p_stream,
/* Run user specified filter chain */
for
(
i
=
0
;
i
<
id
->
i_ufilter
;
i
++
)
{
p_pic
=
id
->
pp_ufilter
[
i
]
->
pf_video_filter
(
id
->
pp_ufilter
[
i
],
p_pic
);
p_pic
=
id
->
pp_ufilter
[
i
]
->
pf_video_filter
(
id
->
pp_ufilter
[
i
],
p_pic
);
}
if
(
p_sys
->
i_threads
==
0
)
...
...
@@ -2413,8 +2414,8 @@ static int transcode_video_process( sout_stream_t *p_stream,
if
(
p_sys
->
b_master_sync
&&
i_duplicate
>
1
)
{
mtime_t
i_pts
=
date_Get
(
&
id
->
interpolated_pts
)
+
1
;
if
(
p_pic
->
date
-
i_pts
>
MASTER_SYNC_MAX_DRIFT
||
p_pic
->
date
-
i_pts
<
-
MASTER_SYNC_MAX_DRIFT
)
if
(
(
p_pic
->
date
-
i_pts
>
MASTER_SYNC_MAX_DRIFT
)
||
((
p_pic
->
date
-
i_pts
)
<
-
MASTER_SYNC_MAX_DRIFT
)
)
{
msg_Dbg
(
p_stream
,
"drift is too high, resetting master sync"
);
date_Set
(
&
id
->
interpolated_pts
,
p_pic
->
date
);
...
...
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