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
4b8419aa
Commit
4b8419aa
authored
May 06, 2007
by
Loren Merritt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 8911 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
44c56000
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
vp6.c
libavcodec/vp6.c
+4
-9
No files found.
libavcodec/vp6.c
View file @
4b8419aa
...
...
@@ -299,11 +299,6 @@ static void vp6_parse_coeff(vp56_context_t *s)
for
(
coeff_idx
=
0
;
coeff_idx
<
64
;
)
{
if
((
coeff_idx
>
1
&&
ct
==
0
)
||
vp56_rac_get_prob
(
c
,
model2
[
0
]))
{
/* parse a coeff */
if
(
coeff_idx
==
0
)
{
s
->
left_block
[
vp56_b6to4
[
b
]].
not_null_dc
=
1
;
s
->
above_blocks
[
s
->
above_block_idx
[
b
]].
not_null_dc
=
1
;
}
if
(
vp56_rac_get_prob
(
c
,
model2
[
2
]))
{
if
(
vp56_rac_get_prob
(
c
,
model2
[
3
]))
{
idx
=
vp56_rac_get_tree
(
c
,
vp56_pc_tree
,
model
);
...
...
@@ -331,10 +326,7 @@ static void vp6_parse_coeff(vp56_context_t *s)
}
else
{
/* parse a run */
ct
=
0
;
if
(
coeff_idx
==
0
)
{
s
->
left_block
[
vp56_b6to4
[
b
]].
not_null_dc
=
0
;
s
->
above_blocks
[
s
->
above_block_idx
[
b
]].
not_null_dc
=
0
;
}
else
{
if
(
coeff_idx
>
0
)
{
if
(
!
vp56_rac_get_prob
(
c
,
model2
[
1
]))
break
;
...
...
@@ -349,6 +341,9 @@ static void vp6_parse_coeff(vp56_context_t *s)
cg
=
vp6_coeff_groups
[
coeff_idx
+=
run
];
model
=
model2
=
s
->
coeff_model_ract
[
pt
][
ct
][
cg
];
}
s
->
left_block
[
vp56_b6to4
[
b
]].
not_null_dc
=
s
->
above_blocks
[
s
->
above_block_idx
[
b
]].
not_null_dc
=
!!
s
->
block_coeff
[
b
][
0
];
}
}
...
...
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