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
4d593896
Commit
4d593896
authored
Apr 19, 2015
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vc1_pred: Always initialize px and py in ff_vc1_pred_mv_intfr()
Fix a rather lengthy initialization warning from clang.
parent
9286de04
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
vc1_pred.c
libavcodec/vc1_pred.c
+3
-5
No files found.
libavcodec/vc1_pred.c
View file @
4d593896
...
...
@@ -468,7 +468,7 @@ void ff_vc1_pred_mv_intfr(VC1Context *v, int n, int dmv_x, int dmv_y,
MpegEncContext
*
s
=
&
v
->
s
;
int
xy
,
wrap
,
off
=
0
;
int
A
[
2
],
B
[
2
],
C
[
2
];
int
px
,
py
;
int
px
=
0
,
py
=
0
;
int
a_valid
=
0
,
b_valid
=
0
,
c_valid
=
0
;
int
field_a
,
field_b
,
field_c
;
// 0: same, 1: opposit
int
total_valid
,
num_samefield
,
num_oppfield
;
...
...
@@ -605,8 +605,7 @@ void ff_vc1_pred_mv_intfr(VC1Context *v, int n, int dmv_x, int dmv_y,
if
(
a_valid
)
{
px
=
A
[
0
];
py
=
A
[
1
];
}
if
(
b_valid
)
{
px
=
B
[
0
];
py
=
B
[
1
];
}
if
(
c_valid
)
{
px
=
C
[
0
];
py
=
C
[
1
];
}
}
else
px
=
py
=
0
;
}
}
}
else
{
if
(
a_valid
)
...
...
@@ -661,8 +660,7 @@ void ff_vc1_pred_mv_intfr(VC1Context *v, int n, int dmv_x, int dmv_y,
}
else
if
(
total_valid
==
1
)
{
px
=
(
a_valid
)
?
A
[
0
]
:
((
b_valid
)
?
B
[
0
]
:
C
[
0
]);
py
=
(
a_valid
)
?
A
[
1
]
:
((
b_valid
)
?
B
[
1
]
:
C
[
1
]);
}
else
px
=
py
=
0
;
}
}
/* store MV using signed modulus of MV range defined in 4.11 */
...
...
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