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
a51fbb56
Commit
a51fbb56
authored
Oct 04, 2011
by
Laurent Aimar
Committed by
Michael Niedermayer
Oct 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h254: explicitly initialize bit depth/chroma idc
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
751a4efd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
h264.c
libavcodec/h264.c
+8
-2
No files found.
libavcodec/h264.c
View file @
a51fbb56
...
...
@@ -992,13 +992,19 @@ static av_cold void common_init(H264Context *h){
s
->
height
=
s
->
avctx
->
height
;
s
->
codec_id
=
s
->
avctx
->
codec
->
id
;
ff_h264dsp_init
(
&
h
->
h264dsp
,
8
,
1
);
ff_h264_pred_init
(
&
h
->
hpc
,
s
->
codec_id
,
8
,
1
);
s
->
avctx
->
bits_per_raw_sample
=
8
;
h
->
cur_chroma_format_idc
=
1
;
ff_h264dsp_init
(
&
h
->
h264dsp
,
s
->
avctx
->
bits_per_raw_sample
,
h
->
cur_chroma_format_idc
);
ff_h264_pred_init
(
&
h
->
hpc
,
s
->
codec_id
,
s
->
avctx
->
bits_per_raw_sample
,
h
->
cur_chroma_format_idc
);
h
->
dequant_coeff_pps
=
-
1
;
s
->
unrestricted_mv
=
1
;
s
->
decode
=
1
;
//FIXME
s
->
dsp
.
dct_bits
=
16
;
dsputil_init
(
&
s
->
dsp
,
s
->
avctx
);
// needed so that idct permutation is known early
memset
(
h
->
pps
.
scaling_matrix4
,
16
,
6
*
16
*
sizeof
(
uint8_t
));
...
...
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