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
7da25488
Commit
7da25488
authored
Oct 28, 2017
by
Martin Vignali
Committed by
Paul B Mahol
Oct 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavcodec/magicyuv : remove unneed variable assignment
parent
073986c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
magicyuv.c
libavcodec/magicyuv.c
+2
-8
No files found.
libavcodec/magicyuv.c
View file @
7da25488
...
...
@@ -280,11 +280,9 @@ static int magy_decode_slice10(AVCodecContext *avctx, void *tdata,
case
GRADIENT
:
dst
=
(
uint16_t
*
)
p
->
data
[
i
]
+
j
*
sheight
*
stride
;
s
->
llviddsp
.
add_left_pred_int16
(
dst
,
dst
,
max
,
width
,
0
);
left
=
lefttop
=
0
;
dst
+=
stride
;
if
(
interlaced
)
{
s
->
llviddsp
.
add_left_pred_int16
(
dst
,
dst
,
max
,
width
,
0
);
left
=
lefttop
=
0
;
dst
+=
stride
;
}
for
(
k
=
1
+
interlaced
;
k
<
height
;
k
++
)
{
...
...
@@ -302,14 +300,13 @@ static int magy_decode_slice10(AVCodecContext *avctx, void *tdata,
break
;
case
MEDIAN
:
dst
=
(
uint16_t
*
)
p
->
data
[
i
]
+
j
*
sheight
*
stride
;
lefttop
=
left
=
dst
[
0
];
s
->
llviddsp
.
add_left_pred_int16
(
dst
,
dst
,
max
,
width
,
0
);
dst
+=
stride
;
if
(
interlaced
)
{
lefttop
=
left
=
dst
[
0
];
s
->
llviddsp
.
add_left_pred_int16
(
dst
,
dst
,
max
,
width
,
0
);
dst
+=
stride
;
}
lefttop
=
left
=
dst
[
0
];
for
(
k
=
1
+
interlaced
;
k
<
height
;
k
++
)
{
magicyuv_median_pred16
(
dst
,
dst
-
fake_stride
,
dst
,
width
,
&
left
,
&
lefttop
,
max
);
lefttop
=
left
=
dst
[
0
];
...
...
@@ -411,11 +408,9 @@ static int magy_decode_slice(AVCodecContext *avctx, void *tdata,
case
GRADIENT
:
dst
=
p
->
data
[
i
]
+
j
*
sheight
*
stride
;
s
->
llviddsp
.
add_left_pred
(
dst
,
dst
,
width
,
0
);
left
=
lefttop
=
0
;
dst
+=
stride
;
if
(
interlaced
)
{
s
->
llviddsp
.
add_left_pred
(
dst
,
dst
,
width
,
0
);
left
=
lefttop
=
0
;
dst
+=
stride
;
}
for
(
k
=
1
+
interlaced
;
k
<
height
;
k
++
)
{
...
...
@@ -433,14 +428,13 @@ static int magy_decode_slice(AVCodecContext *avctx, void *tdata,
break
;
case
MEDIAN
:
dst
=
p
->
data
[
i
]
+
j
*
sheight
*
stride
;
lefttop
=
left
=
dst
[
0
];
s
->
llviddsp
.
add_left_pred
(
dst
,
dst
,
width
,
0
);
dst
+=
stride
;
if
(
interlaced
)
{
lefttop
=
left
=
dst
[
0
];
s
->
llviddsp
.
add_left_pred
(
dst
,
dst
,
width
,
0
);
dst
+=
stride
;
}
lefttop
=
left
=
dst
[
0
];
for
(
k
=
1
+
interlaced
;
k
<
height
;
k
++
)
{
s
->
llviddsp
.
add_median_pred
(
dst
,
dst
-
fake_stride
,
dst
,
width
,
&
left
,
&
lefttop
);
...
...
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