Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
dd3d0f46
Commit
dd3d0f46
authored
Nov 09, 2013
by
Ronald S. Bultje
Committed by
Clément Bœsch
Nov 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vp9: fix mvref finding to adhere to bug in libvpx.
Fixes a particular youtube video that I unfortunately can't share.
parent
f5bffd3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
vp9.c
libavcodec/vp9.c
+8
-2
No files found.
libavcodec/vp9.c
View file @
dd3d0f46
...
...
@@ -984,7 +984,10 @@ static void find_ref_mvs(VP9Context *s,
if
(
mv
->
ref
[
0
]
!=
ref
&&
mv
->
ref
[
0
]
>=
0
)
{
RETURN_SCALE_MV
(
mv
->
mv
[
0
],
s
->
signbias
[
mv
->
ref
[
0
]]
!=
s
->
signbias
[
ref
]);
}
if
(
mv
->
ref
[
1
]
!=
ref
&&
mv
->
ref
[
1
]
>=
0
)
{
if
(
mv
->
ref
[
1
]
!=
ref
&&
mv
->
ref
[
1
]
>=
0
&&
// BUG - libvpx has this condition regardless of whether
// we used the first ref MV and pre-scaling
AV_RN32A
(
&
mv
->
mv
[
0
])
!=
AV_RN32A
(
&
mv
->
mv
[
1
]))
{
RETURN_SCALE_MV
(
mv
->
mv
[
1
],
s
->
signbias
[
mv
->
ref
[
1
]]
!=
s
->
signbias
[
ref
]);
}
}
...
...
@@ -997,7 +1000,10 @@ static void find_ref_mvs(VP9Context *s,
if
(
mv
->
ref
[
0
]
!=
ref
&&
mv
->
ref
[
0
]
>=
0
)
{
RETURN_SCALE_MV
(
mv
->
mv
[
0
],
s
->
signbias
[
mv
->
ref
[
0
]]
!=
s
->
signbias
[
ref
]);
}
if
(
mv
->
ref
[
1
]
!=
ref
&&
mv
->
ref
[
1
]
>=
0
)
{
if
(
mv
->
ref
[
1
]
!=
ref
&&
mv
->
ref
[
1
]
>=
0
&&
// BUG - libvpx has this condition regardless of whether
// we used the first ref MV and pre-scaling
AV_RN32A
(
&
mv
->
mv
[
0
])
!=
AV_RN32A
(
&
mv
->
mv
[
1
]))
{
RETURN_SCALE_MV
(
mv
->
mv
[
1
],
s
->
signbias
[
mv
->
ref
[
1
]]
!=
s
->
signbias
[
ref
]);
}
}
...
...
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