mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-30 11:24:17 +00:00
ffv1: assert that there is at least one slice
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
fd6707ed0e
commit
010f1ce954
@ -113,6 +113,7 @@ av_cold int ffv1_init_slice_contexts(FFV1Context *f)
|
||||
int i;
|
||||
|
||||
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++) {
|
||||
FFV1Context *fs = av_mallocz(sizeof(*fs));
|
||||
|
Loading…
Reference in New Issue
Block a user