projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddb901b
)
Zero the frame data on allocation for VB codec, e.g. the FATE sample seems to
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 23 Jan 2010 10:25:22 +0000
(10:25 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sat, 23 Jan 2010 10:25:22 +0000
(10:25 +0000)
rely on this.
Originally committed as revision 21394 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vb.c
patch
|
blob
|
history
diff --git
a/libavcodec/vb.c
b/libavcodec/vb.c
index
042ca56
..
f4f2ee1
100644
(file)
--- a/
libavcodec/vb.c
+++ b/
libavcodec/vb.c
@@
-269,8
+269,8
@@
static av_cold int decode_init(AVCodecContext *avctx)
c->avctx = avctx;
avctx->pix_fmt = PIX_FMT_PAL8;
- c->frame = av_malloc
(
avctx->width * avctx->height);
- c->prev_frame = av_malloc
(
avctx->width * avctx->height);
+ c->frame = av_malloc
z(
avctx->width * avctx->height);
+ c->prev_frame = av_malloc
z(
avctx->width * avctx->height);
memset(c->pal, 0, sizeof(c->pal));