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
0accf24b
Commit
0accf24b
authored
Jun 09, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cavsdec: fix qp fixed slice handling
Fixes Ticket3400 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
52e563bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
cavs.h
libavcodec/cavs.h
+1
-0
cavsdec.c
libavcodec/cavsdec.c
+2
-1
No files found.
libavcodec/cavs.h
View file @
0accf24b
...
@@ -214,6 +214,7 @@ typedef struct AVSContext {
...
@@ -214,6 +214,7 @@ typedef struct AVSContext {
int
luma_scan
[
4
];
int
luma_scan
[
4
];
int
qp
;
int
qp
;
int
qp_fixed
;
int
qp_fixed
;
int
pic_qp_fixed
;
int
cbp
;
int
cbp
;
ScanTable
scantable
;
ScanTable
scantable
;
...
...
libavcodec/cavsdec.c
View file @
0accf24b
...
@@ -904,7 +904,7 @@ static inline int decode_slice_header(AVSContext *h, GetBitContext *gb)
...
@@ -904,7 +904,7 @@ static inline int decode_slice_header(AVSContext *h, GetBitContext *gb)
/* mark top macroblocks as unavailable */
/* mark top macroblocks as unavailable */
h
->
flags
&=
~
(
B_AVAIL
|
C_AVAIL
);
h
->
flags
&=
~
(
B_AVAIL
|
C_AVAIL
);
if
(
(
h
->
mby
==
0
)
&&
(
!
h
->
qp_fixed
)
)
{
if
(
!
h
->
pic_qp_fixed
)
{
h
->
qp_fixed
=
get_bits1
(
gb
);
h
->
qp_fixed
=
get_bits1
(
gb
);
h
->
qp
=
get_bits
(
gb
,
6
);
h
->
qp
=
get_bits
(
gb
,
6
);
}
}
...
@@ -1027,6 +1027,7 @@ static int decode_pic(AVSContext *h)
...
@@ -1027,6 +1027,7 @@ static int decode_pic(AVSContext *h)
skip_bits1
(
&
h
->
gb
);
//advanced_pred_mode_disable
skip_bits1
(
&
h
->
gb
);
//advanced_pred_mode_disable
skip_bits1
(
&
h
->
gb
);
//top_field_first
skip_bits1
(
&
h
->
gb
);
//top_field_first
skip_bits1
(
&
h
->
gb
);
//repeat_first_field
skip_bits1
(
&
h
->
gb
);
//repeat_first_field
h
->
pic_qp_fixed
=
h
->
qp_fixed
=
get_bits1
(
&
h
->
gb
);
h
->
qp_fixed
=
get_bits1
(
&
h
->
gb
);
h
->
qp
=
get_bits
(
&
h
->
gb
,
6
);
h
->
qp
=
get_bits
(
&
h
->
gb
,
6
);
if
(
h
->
cur
.
f
->
pict_type
==
AV_PICTURE_TYPE_I
)
{
if
(
h
->
cur
.
f
->
pict_type
==
AV_PICTURE_TYPE_I
)
{
...
...
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