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
9d11fedd
Commit
9d11fedd
authored
Jun 17, 2017
by
James Darnley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mdec: override IDCT choice before initing DSP structs
parent
d2597fb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mdec.c
libavcodec/mdec.c
+3
-2
No files found.
libavcodec/mdec.c
View file @
9d11fedd
...
@@ -213,6 +213,9 @@ static av_cold int decode_init(AVCodecContext *avctx)
...
@@ -213,6 +213,9 @@ static av_cold int decode_init(AVCodecContext *avctx)
{
{
MDECContext
*
const
a
=
avctx
->
priv_data
;
MDECContext
*
const
a
=
avctx
->
priv_data
;
if
(
avctx
->
idct_algo
==
FF_IDCT_AUTO
)
avctx
->
idct_algo
=
FF_IDCT_SIMPLE
;
a
->
mb_width
=
(
avctx
->
coded_width
+
15
)
/
16
;
a
->
mb_width
=
(
avctx
->
coded_width
+
15
)
/
16
;
a
->
mb_height
=
(
avctx
->
coded_height
+
15
)
/
16
;
a
->
mb_height
=
(
avctx
->
coded_height
+
15
)
/
16
;
...
@@ -225,8 +228,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
...
@@ -225,8 +228,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
ff_init_scantable
(
a
->
idsp
.
idct_permutation
,
&
a
->
scantable
,
ff_init_scantable
(
a
->
idsp
.
idct_permutation
,
&
a
->
scantable
,
ff_zigzag_direct
);
ff_zigzag_direct
);
if
(
avctx
->
idct_algo
==
FF_IDCT_AUTO
)
avctx
->
idct_algo
=
FF_IDCT_SIMPLE
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVJ420P
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUVJ420P
;
avctx
->
color_range
=
AVCOL_RANGE_JPEG
;
avctx
->
color_range
=
AVCOL_RANGE_JPEG
;
...
...
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