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
7ecae905
Commit
7ecae905
authored
Sep 25, 2007
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 10584 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
d7af6a9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
vp56.c
libavcodec/vp56.c
+7
-10
No files found.
libavcodec/vp56.c
View file @
7ecae905
...
...
@@ -268,6 +268,7 @@ static void vp56_add_predictors_dc(vp56_context_t *s, vp56_frame_t ref_frame)
vp56_ref_dc_t
*
lb
=
&
s
->
left_block
[
vp56_b6to4
[
b
]];
int
count
=
0
;
int
dc
=
0
;
int
i
;
if
(
ref_frame
==
lb
->
ref_frame
)
{
dc
+=
lb
->
dc_coeff
;
...
...
@@ -277,16 +278,12 @@ static void vp56_add_predictors_dc(vp56_context_t *s, vp56_frame_t ref_frame)
dc
+=
ab
->
dc_coeff
;
count
++
;
}
if
(
s
->
avctx
->
codec
->
id
==
CODEC_ID_VP5
)
{
if
(
count
<
2
&&
ref_frame
==
ab
[
-
1
].
ref_frame
)
{
dc
+=
ab
[
-
1
].
dc_coeff
;
count
++
;
}
if
(
count
<
2
&&
ref_frame
==
ab
[
1
].
ref_frame
)
{
dc
+=
ab
[
1
].
dc_coeff
;
count
++
;
}
}
if
(
s
->
avctx
->
codec
->
id
==
CODEC_ID_VP5
)
for
(
i
=
0
;
i
<
2
;
i
++
)
if
(
count
<
2
&&
ref_frame
==
ab
[
-
1
+
2
*
i
].
ref_frame
)
{
dc
+=
ab
[
-
1
+
2
*
i
].
dc_coeff
;
count
++
;
}
if
(
count
==
0
)
dc
=
s
->
prev_dc
[
vp56_b2p
[
b
]][
ref_frame
];
else
if
(
count
==
2
)
...
...
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