Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
f832a772
Commit
f832a772
authored
Sep 10, 2023
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/magicyuvenc: ensure no slice slot is left unset
parent
67cc7aaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
magicyuvenc.c
libavcodec/magicyuvenc.c
+1
-0
No files found.
libavcodec/magicyuvenc.c
View file @
f832a772
...
@@ -209,6 +209,7 @@ static av_cold int magy_encode_init(AVCodecContext *avctx)
...
@@ -209,6 +209,7 @@ static av_cold int magy_encode_init(AVCodecContext *avctx)
s
->
nb_slices
=
FFMIN
(
s
->
nb_slices
,
avctx
->
height
>>
s
->
vshift
[
1
]);
s
->
nb_slices
=
FFMIN
(
s
->
nb_slices
,
avctx
->
height
>>
s
->
vshift
[
1
]);
s
->
nb_slices
=
FFMAX
(
1
,
s
->
nb_slices
);
s
->
nb_slices
=
FFMAX
(
1
,
s
->
nb_slices
);
s
->
slice_height
=
FFALIGN
((
avctx
->
height
+
s
->
nb_slices
-
1
)
/
s
->
nb_slices
,
1
<<
s
->
vshift
[
1
]);
s
->
slice_height
=
FFALIGN
((
avctx
->
height
+
s
->
nb_slices
-
1
)
/
s
->
nb_slices
,
1
<<
s
->
vshift
[
1
]);
s
->
nb_slices
=
(
avctx
->
height
+
s
->
slice_height
-
1
)
/
s
->
slice_height
;
s
->
slice_pos
=
av_calloc
(
s
->
nb_slices
*
s
->
planes
,
sizeof
(
*
s
->
slice_pos
));
s
->
slice_pos
=
av_calloc
(
s
->
nb_slices
*
s
->
planes
,
sizeof
(
*
s
->
slice_pos
));
s
->
slice_size
=
av_calloc
(
s
->
nb_slices
*
s
->
planes
,
sizeof
(
*
s
->
slice_size
));
s
->
slice_size
=
av_calloc
(
s
->
nb_slices
*
s
->
planes
,
sizeof
(
*
s
->
slice_size
));
s
->
slices
=
av_calloc
(
s
->
nb_slices
*
s
->
planes
,
sizeof
(
*
s
->
slices
));
s
->
slices
=
av_calloc
(
s
->
nb_slices
*
s
->
planes
,
sizeof
(
*
s
->
slices
));
...
...
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