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
fefe47b7
Commit
fefe47b7
authored
Apr 04, 2018
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/clearvideo: fix mixed code and declarations
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
d95f15b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
clearvideo.c
libavcodec/clearvideo.c
+5
-4
No files found.
libavcodec/clearvideo.c
View file @
fefe47b7
...
...
@@ -296,6 +296,7 @@ static int copyadd_block(AVCodecContext *avctx, AVFrame *dst, AVFrame *src,
static
MV
mvi_predict
(
MVInfo
*
mvi
,
int
mb_x
,
int
mb_y
,
MV
diff
)
{
MV
res
,
pred_mv
;
int
left_mv
,
right_mv
,
top_mv
,
bot_mv
;
if
(
mvi
->
top
)
{
if
(
mb_x
>
0
)
{
...
...
@@ -315,16 +316,16 @@ static MV mvi_predict(MVInfo *mvi, int mb_x, int mb_y, MV diff)
res
=
pred_mv
;
int
left_mv
=
-
((
mb_x
*
mvi
->
mb_size
));
int
right_mv
=
((
mvi
->
mb_w
-
mb_x
-
1
)
*
mvi
->
mb_size
);
left_mv
=
-
((
mb_x
*
mvi
->
mb_size
));
right_mv
=
((
mvi
->
mb_w
-
mb_x
-
1
)
*
mvi
->
mb_size
);
if
(
res
.
x
<
left_mv
)
{
res
.
x
=
left_mv
;
}
if
(
res
.
x
>
right_mv
)
{
res
.
x
=
right_mv
;
}
int
top_mv
=
-
((
mb_y
*
mvi
->
mb_size
));
int
bot_mv
=
((
mvi
->
mb_h
-
mb_y
-
1
)
*
mvi
->
mb_size
);
top_mv
=
-
((
mb_y
*
mvi
->
mb_size
));
bot_mv
=
((
mvi
->
mb_h
-
mb_y
-
1
)
*
mvi
->
mb_size
);
if
(
res
.
y
<
top_mv
)
{
res
.
y
=
top_mv
;
}
...
...
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