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
137fbab1
Commit
137fbab1
authored
Feb 24, 2015
by
zhaoxiu.zeng
Committed by
Michael Niedermayer
Feb 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/vc1_block: move early exit code up in ff_vc1_pred_dc()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
99145022
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
vc1_block.c
libavcodec/vc1_block.c
+7
-5
No files found.
libavcodec/vc1_block.c
View file @
137fbab1
...
...
@@ -388,6 +388,12 @@ static inline int ff_vc1_pred_dc(MpegEncContext *s, int overlap, int pq, int n,
int
q1
,
q2
=
0
;
int
dqscale_index
;
/* scale predictors if needed */
q1
=
s
->
current_picture
.
qscale_table
[
mb_pos
];
dqscale_index
=
s
->
y_dc_scale_table
[
q1
]
-
1
;
if
(
dqscale_index
<
0
)
return
0
;
wrap
=
s
->
block_wrap
[
n
];
dc_val
=
s
->
dc_val
[
0
]
+
s
->
block_index
[
n
];
...
...
@@ -397,11 +403,7 @@ static inline int ff_vc1_pred_dc(MpegEncContext *s, int overlap, int pq, int n,
c
=
dc_val
[
-
1
];
b
=
dc_val
[
-
1
-
wrap
];
a
=
dc_val
[
-
wrap
];
/* scale predictors if needed */
q1
=
s
->
current_picture
.
qscale_table
[
mb_pos
];
dqscale_index
=
s
->
y_dc_scale_table
[
q1
]
-
1
;
if
(
dqscale_index
<
0
)
return
0
;
if
(
c_avail
&&
(
n
!=
1
&&
n
!=
3
))
{
q2
=
s
->
current_picture
.
qscale_table
[
mb_pos
-
1
];
if
(
q2
&&
q2
!=
q1
)
...
...
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