[FFmpeg-cvslog] ffv1: assert that there is at least one slice
Paul B Mahol
git at videolan.org
Wed Oct 31 20:42:49 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Oct 31 18:01:10 2012 +0000| [010f1ce95443a539d3d0405b0b089f245121333a] | committer: Paul B Mahol
ffv1: assert that there is at least one slice
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=010f1ce95443a539d3d0405b0b089f245121333a
---
libavcodec/ffv1.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 7dc6a73..074be4c 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));
More information about the ffmpeg-cvslog
mailing list