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
f1e17eb4
Commit
f1e17eb4
authored
Sep 25, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/qtrleenc: fix undefined behaviour
Fixes #7991.
parent
4a51075f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
qtrleenc.c
libavcodec/qtrleenc.c
+4
-3
No files found.
libavcodec/qtrleenc.c
View file @
f1e17eb4
...
@@ -259,9 +259,10 @@ static void qtrle_encode_line(QtrleEncContext *s, const AVFrame *p, int line, ui
...
@@ -259,9 +259,10 @@ static void qtrle_encode_line(QtrleEncContext *s, const AVFrame *p, int line, ui
/* These bulk costs increase every iteration */
/* These bulk costs increase every iteration */
lowest_bulk_cost
+=
s
->
pixel_size
;
lowest_bulk_cost
+=
s
->
pixel_size
;
sec_lowest_bulk_cost
+=
s
->
pixel_size
;
sec_lowest_bulk_cost
+=
s
->
pixel_size
;
if
(
this_line
>=
p
->
data
[
0
]
+
s
->
pixel_size
)
this_line
-=
s
->
pixel_size
;
this_line
-=
s
->
pixel_size
;
prev_line
-=
s
->
pixel_size
;
if
(
prev_line
>=
s
->
previous_frame
->
data
[
0
]
+
s
->
pixel_size
)
prev_line
-=
s
->
pixel_size
;
}
}
/* Good! Now we have the best sequence for this line, let's output it. */
/* Good! Now we have the best sequence for this line, let's output it. */
...
...
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