diff options
author | Mans Rullgard <mans@mansr.com> | 2011-03-21 01:04:47 +0300 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-03-21 01:17:20 +0300 |
commit | 027f60f32b758aa8e7c08685729084b1a12d81e9 (patch) | |
tree | 5f4eb049dbf24a3522292b119d5a16ba950040b0 /libavcodec/ffv1.c | |
parent | cb48e245e6e770f146220fac0a8bd4dc1a5e006c (diff) |
ffv1: allocate correct size for sample buffer
This fixes a typo in the size calculation for the sample buffer
introduced in cbabccc367424.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r-- | libavcodec/ffv1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index e1e19d2e1f..8b46091462 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -792,7 +792,7 @@ static av_cold int init_slice_contexts(FFV1Context *f){ fs->slice_x = sxs; fs->slice_y = sys; - fs->sample_buffer = av_malloc(6 * (fs->width+6) * sizeof(*fs->sample_buffer)); + fs->sample_buffer = av_malloc(9 * (fs->width+6) * sizeof(*fs->sample_buffer)); if (!fs->sample_buffer) return AVERROR(ENOMEM); } |