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
05795f35
Commit
05795f35
authored
Oct 09, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo_enc: fix a signed overflow
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
8b19ae07
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+1
-1
No files found.
libavcodec/mpegvideo_enc.c
View file @
05795f35
...
...
@@ -2023,7 +2023,7 @@ static int mb_var_thread(AVCodecContext *c, void *arg){
int
varc
;
int
sum
=
s
->
dsp
.
pix_sum
(
pix
,
s
->
linesize
);
varc
=
(
s
->
dsp
.
pix_norm1
(
pix
,
s
->
linesize
)
-
(((
unsigned
)
(
sum
*
sum
)
)
>>
8
)
+
500
+
128
)
>>
8
;
varc
=
(
s
->
dsp
.
pix_norm1
(
pix
,
s
->
linesize
)
-
(((
unsigned
)
sum
*
sum
)
>>
8
)
+
500
+
128
)
>>
8
;
s
->
current_picture
.
mb_var
[
s
->
mb_stride
*
mb_y
+
mb_x
]
=
varc
;
s
->
current_picture
.
mb_mean
[
s
->
mb_stride
*
mb_y
+
mb_x
]
=
(
sum
+
128
)
>>
8
;
...
...
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