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
c33d4916
Commit
c33d4916
authored
Nov 08, 2011
by
shahriman AMS
Committed by
Anton Khirnov
Nov 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VC1: Add bottom field offset to block_index[] to avoid rewriting (+10L)
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
62622d04
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vc1dec.c
libavcodec/vc1dec.c
+4
-4
No files found.
libavcodec/vc1dec.c
View file @
c33d4916
...
...
@@ -930,8 +930,8 @@ static void vc1_mc_4mv_chroma(VC1Context *v, int dir)
if
(
!
v
->
field_mode
||
(
v
->
field_mode
&&
!
v
->
numref
))
{
valid_count
=
get_chroma_mv
(
mvx
,
mvy
,
intra
,
0
,
&
tx
,
&
ty
);
if
(
!
valid_count
)
{
s
->
current_picture
.
f
.
motion_val
[
1
][
s
->
block_index
[
0
]][
0
]
=
0
;
s
->
current_picture
.
f
.
motion_val
[
1
][
s
->
block_index
[
0
]][
1
]
=
0
;
s
->
current_picture
.
f
.
motion_val
[
1
][
s
->
block_index
[
0
]
+
v
->
blocks_off
][
0
]
=
0
;
s
->
current_picture
.
f
.
motion_val
[
1
][
s
->
block_index
[
0
]
+
v
->
blocks_off
][
1
]
=
0
;
v
->
luma_mv
[
s
->
mb_x
][
0
]
=
v
->
luma_mv
[
s
->
mb_x
][
1
]
=
0
;
return
;
//no need to do MC for intra blocks
}
...
...
@@ -943,8 +943,8 @@ static void vc1_mc_4mv_chroma(VC1Context *v, int dir)
if
(
dominant
)
chroma_ref_type
=
!
v
->
cur_field_type
;
}
s
->
current_picture
.
f
.
motion_val
[
1
][
s
->
block_index
[
0
]][
0
]
=
tx
;
s
->
current_picture
.
f
.
motion_val
[
1
][
s
->
block_index
[
0
]][
1
]
=
ty
;
s
->
current_picture
.
f
.
motion_val
[
1
][
s
->
block_index
[
0
]
+
v
->
blocks_off
][
0
]
=
tx
;
s
->
current_picture
.
f
.
motion_val
[
1
][
s
->
block_index
[
0
]
+
v
->
blocks_off
][
1
]
=
ty
;
uvmx
=
(
tx
+
((
tx
&
3
)
==
3
))
>>
1
;
uvmy
=
(
ty
+
((
ty
&
3
)
==
3
))
>>
1
;
...
...
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