OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb48e24
)
ffv1: allocate correct size for sample buffer
author
Mans Rullgard
<mans@mansr.com>
Sun, 20 Mar 2011 22:04:47 +0000
(22:04 +0000)
committer
Mans Rullgard
<mans@mansr.com>
Sun, 20 Mar 2011 22:17:20 +0000
(22:17 +0000)
This fixes a typo in the size calculation for the sample buffer
introduced in
cbabccc367424
.
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/ffv1.c
patch
|
blob
|
history
diff --git
a/libavcodec/ffv1.c
b/libavcodec/ffv1.c
index
e1e19d2
..
8b46091
100644
(file)
--- 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);
}