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
eac3ac1f
Commit
eac3ac1f
authored
Nov 16, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hevc: eliminate an unneeded intermediate variable
parent
eb335f3c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
hevc.c
libavcodec/hevc.c
+2
-5
No files found.
libavcodec/hevc.c
View file @
eac3ac1f
...
...
@@ -1647,7 +1647,6 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
int
min_cb_width
=
s
->
sps
->
min_cb_width
;
int
x_cb
=
x0
>>
log2_min_cb_size
;
int
y_cb
=
y0
>>
log2_min_cb_size
;
int
ref_idx
[
2
];
int
x_pu
,
y_pu
;
int
i
,
j
;
...
...
@@ -1674,8 +1673,7 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
if
(
inter_pred_idc
!=
PRED_L1
)
{
if
(
s
->
sh
.
nb_refs
[
L0
])
{
ref_idx
[
0
]
=
ff_hevc_ref_idx_lx_decode
(
s
,
s
->
sh
.
nb_refs
[
L0
]);
current_mv
.
ref_idx
[
0
]
=
ref_idx
[
0
];
current_mv
.
ref_idx
[
0
]
=
ff_hevc_ref_idx_lx_decode
(
s
,
s
->
sh
.
nb_refs
[
L0
]);
}
current_mv
.
pred_flag
[
0
]
=
1
;
hls_mvd_coding
(
s
,
x0
,
y0
,
0
);
...
...
@@ -1689,8 +1687,7 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
if
(
inter_pred_idc
!=
PRED_L0
)
{
if
(
s
->
sh
.
nb_refs
[
L1
])
{
ref_idx
[
1
]
=
ff_hevc_ref_idx_lx_decode
(
s
,
s
->
sh
.
nb_refs
[
L1
]);
current_mv
.
ref_idx
[
1
]
=
ref_idx
[
1
];
current_mv
.
ref_idx
[
1
]
=
ff_hevc_ref_idx_lx_decode
(
s
,
s
->
sh
.
nb_refs
[
L1
]);
}
if
(
s
->
sh
.
mvd_l1_zero_flag
==
1
&&
inter_pred_idc
==
PRED_BI
)
{
...
...
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