Commit 010f1ce9 authored by Paul B Mahol's avatar Paul B Mahol

ffv1: assert that there is at least one slice

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent fd6707ed
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment