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
8d25a11d
Commit
8d25a11d
authored
Sep 02, 2015
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vp9: use resetctx in the same way as libvpx.
parent
cc9d3a3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
vp9.c
libavcodec/vp9.c
+5
-1
No files found.
libavcodec/vp9.c
View file @
8d25a11d
...
...
@@ -856,7 +856,7 @@ static int decode_frame_header(AVCodecContext *ctx,
}
}
if
(
s
->
keyframe
||
s
->
errorres
||
s
->
intraonly
)
{
if
(
s
->
keyframe
||
s
->
errorres
||
(
s
->
intraonly
&&
s
->
resetctx
==
3
)
)
{
s
->
prob_ctx
[
0
].
p
=
s
->
prob_ctx
[
1
].
p
=
s
->
prob_ctx
[
2
].
p
=
s
->
prob_ctx
[
3
].
p
=
vp9_default_probs
;
memcpy
(
s
->
prob_ctx
[
0
].
coef
,
vp9_default_coef_probs
,
...
...
@@ -867,6 +867,10 @@ static int decode_frame_header(AVCodecContext *ctx,
sizeof
(
vp9_default_coef_probs
));
memcpy
(
s
->
prob_ctx
[
3
].
coef
,
vp9_default_coef_probs
,
sizeof
(
vp9_default_coef_probs
));
}
else
if
(
s
->
intraonly
&&
s
->
resetctx
==
2
)
{
s
->
prob_ctx
[
c
].
p
=
vp9_default_probs
;
memcpy
(
s
->
prob_ctx
[
c
].
coef
,
vp9_default_coef_probs
,
sizeof
(
vp9_default_coef_probs
));
}
// next 16 bits is size of the rest of the header (arith-coded)
...
...
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