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
fa570590
Commit
fa570590
authored
Apr 15, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: move initialising the implicit pred weight table for MBAFF
Do it where the normal implicit table is initialised.
parent
7b50d604
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
h264_slice.c
libavcodec/h264_slice.c
+4
-7
No files found.
libavcodec/h264_slice.c
View file @
fa570590
...
...
@@ -1357,6 +1357,10 @@ static int h264_slice_header_parse(H264Context *h, H264SliceContext *sl)
else
if
(
pps
->
weighted_bipred_idc
==
2
&&
sl
->
slice_type_nos
==
AV_PICTURE_TYPE_B
)
{
implicit_weight_table
(
h
,
sl
,
-
1
);
if
(
FRAME_MBAFF
(
h
))
{
implicit_weight_table
(
h
,
sl
,
0
);
implicit_weight_table
(
h
,
sl
,
1
);
}
}
else
{
sl
->
pwt
.
use_weight
=
0
;
for
(
i
=
0
;
i
<
2
;
i
++
)
{
...
...
@@ -1378,13 +1382,6 @@ static int h264_slice_header_parse(H264Context *h, H264SliceContext *sl)
return
AVERROR_INVALIDDATA
;
}
if
(
FRAME_MBAFF
(
h
))
{
if
(
pps
->
weighted_bipred_idc
==
2
&&
sl
->
slice_type_nos
==
AV_PICTURE_TYPE_B
)
{
implicit_weight_table
(
h
,
sl
,
0
);
implicit_weight_table
(
h
,
sl
,
1
);
}
}
if
(
sl
->
slice_type_nos
!=
AV_PICTURE_TYPE_I
&&
pps
->
cabac
)
{
tmp
=
get_ue_golomb_31
(
&
sl
->
gb
);
if
(
tmp
>
2
)
{
...
...
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