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
a9709200
Commit
a9709200
authored
Nov 17, 2018
by
Martin Vignali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/proresdec : move dsp init after codec tag check
parent
dae9b4b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
proresdec2.c
libavcodec/proresdec2.c
+9
-9
No files found.
libavcodec/proresdec2.c
View file @
a9709200
...
...
@@ -53,15 +53,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
avctx
->
bits_per_raw_sample
=
10
;
ff_blockdsp_init
(
&
ctx
->
bdsp
,
avctx
);
ff_proresdsp_init
(
&
ctx
->
prodsp
,
avctx
);
ff_init_scantable_permutation
(
idct_permutation
,
ctx
->
prodsp
.
idct_permutation_type
);
permute
(
ctx
->
progressive_scan
,
ff_prores_progressive_scan
,
idct_permutation
);
permute
(
ctx
->
interlaced_scan
,
ff_prores_interlaced_scan
,
idct_permutation
);
switch
(
avctx
->
codec_tag
)
{
case
MKTAG
(
'a'
,
'p'
,
'c'
,
'o'
):
avctx
->
profile
=
FF_PROFILE_PRORES_PROXY
;
...
...
@@ -86,6 +77,15 @@ static av_cold int decode_init(AVCodecContext *avctx)
av_log
(
avctx
,
AV_LOG_WARNING
,
"Unknown prores profile %d
\n
"
,
avctx
->
codec_tag
);
}
ff_blockdsp_init
(
&
ctx
->
bdsp
,
avctx
);
ff_proresdsp_init
(
&
ctx
->
prodsp
,
avctx
);
ff_init_scantable_permutation
(
idct_permutation
,
ctx
->
prodsp
.
idct_permutation_type
);
permute
(
ctx
->
progressive_scan
,
ff_prores_progressive_scan
,
idct_permutation
);
permute
(
ctx
->
interlaced_scan
,
ff_prores_interlaced_scan
,
idct_permutation
);
return
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