Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
450
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
54a136d9
Commit
54a136d9
authored
2 years ago
by
François Cartegnie
Browse files
Options
Downloads
Patches
Plain Diff
vdpau: fix deinterlacing regression
refs
#26832
reverts
0af664b0
parent
1df9a354
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1808
vdpau: fix deinterlacing regression
Pipeline
#213438
passed with stage
Stage:
in 16 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/hw/vdpau/chroma.c
+11
-4
11 additions, 4 deletions
modules/hw/vdpau/chroma.c
with
11 additions
and
4 deletions
modules/hw/vdpau/chroma.c
+
11
−
4
View file @
54a136d9
...
...
@@ -461,14 +461,21 @@ static picture_t *Render(filter_t *filter, picture_t *src, bool import)
return
NULL
;
}
/* Update history and
take
"present" picture field */
/* Update history and
put
"present" picture field
as future
*/
sys
->
history
[
MAX_PAST
+
MAX_FUTURE
]
=
src
;
/* future position pic slides as current at end of the call (skip:) */
picture_t
*
pic_f
=
sys
->
history
[
MAX_PAST
];
if
(
pic_f
==
NULL
)
{
/* If the picture is forced, ignore deinterlacing and fast forward. */
if
(
pic_f
==
NULL
)
/* If we just started, there is no future pic */
{
/* If the picture is not forced (first pic is), we ignore deinterlacing
* and fast forward, as there's nothing to output for this call. */
if
(
!
src
->
b_force
)
goto
skip
;
/* FIXME: Remove the forced hack pictures in video output core and
* allow the last field of a video to be rendered properly. */
* allow the last field of a video to be rendered properly.
* As we're working with a MAX_FUTURE frame delay, we'll need a signal
* to solve those single frame and last frame issues. */
while
(
sys
->
history
[
MAX_PAST
]
==
NULL
)
{
pic_f
=
sys
->
history
[
0
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment