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:
0f155c8
)
snow: zero scratchbuf.
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 16 Feb 2012 05:25:32 +0000
(06:25 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 16 Feb 2012 05:25:32 +0000
(06:25 +0100)
This should fix some valgrind warnings.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/snow.c
patch
|
blob
|
history
diff --git
a/libavcodec/snow.c
b/libavcodec/snow.c
index
e63a4c3
..
cd0d9fe
100644
(file)
--- a/
libavcodec/snow.c
+++ b/
libavcodec/snow.c
@@
-446,7
+446,7
@@
av_cold int ff_snow_common_init(AVCodecContext *avctx){
ff_scale_mv_ref[i][j] = 256*(i+1)/(j+1);
s->avctx->get_buffer(s->avctx, &s->mconly_picture);
- s->scratchbuf = av_malloc(s->mconly_picture.linesize[0]*7*MB_SIZE);
+ s->scratchbuf = av_malloc
z
(s->mconly_picture.linesize[0]*7*MB_SIZE);
return 0;
}