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
010f1ce9
Commit
010f1ce9
authored
Oct 31, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffv1: assert that there is at least one slice
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
fd6707ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
ffv1.c
libavcodec/ffv1.c
+1
-0
No files found.
libavcodec/ffv1.c
View file @
010f1ce9
...
@@ -113,6 +113,7 @@ av_cold int ffv1_init_slice_contexts(FFV1Context *f)
...
@@ -113,6 +113,7 @@ av_cold int ffv1_init_slice_contexts(FFV1Context *f)
int
i
;
int
i
;
f
->
slice_count
=
f
->
num_h_slices
*
f
->
num_v_slices
;
f
->
slice_count
=
f
->
num_h_slices
*
f
->
num_v_slices
;
av_assert0
(
f
->
slice_count
>
0
);
for
(
i
=
0
;
i
<
f
->
slice_count
;
i
++
)
{
for
(
i
=
0
;
i
<
f
->
slice_count
;
i
++
)
{
FFV1Context
*
fs
=
av_mallocz
(
sizeof
(
*
fs
));
FFV1Context
*
fs
=
av_mallocz
(
sizeof
(
*
fs
));
...
...
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