OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6481075
)
Zero palette in case not all entries are initialized later
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Fri, 22 Jan 2010 18:28:41 +0000
(18:28 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Fri, 22 Jan 2010 18:28:41 +0000
(18:28 +0000)
Originally committed as revision 21384 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vb.c
patch
|
blob
|
history
diff --git
a/libavcodec/vb.c
b/libavcodec/vb.c
index
551b106
..
0d5168a
100644
(file)
--- a/
libavcodec/vb.c
+++ b/
libavcodec/vb.c
@@
-254,6
+254,8
@@
static av_cold int decode_init(AVCodecContext *avctx)
c->frame = av_malloc( avctx->width * avctx->height);
c->prev_frame = av_malloc( avctx->width * avctx->height);
+ memset(c->pal, 0, sizeof(c->pal));
+
return 0;
}