From 010f1ce95443a539d3d0405b0b089f245121333a Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 31 Oct 2012 18:01:10 +0000 Subject: ffv1: assert that there is at least one slice Signed-off-by: Paul B Mahol --- libavcodec/ffv1.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/ffv1.c') diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index 7dc6a73b89..074be4cfbb 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -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)); -- cgit v1.2.3