Use AVPALETTE_COUNT instead of hard-coding 256.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 23 Jan 2010 15:22:48 +0000 (15:22 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 23 Jan 2010 15:22:48 +0000 (15:22 +0000)
commit87ac0c0a39268654c8a6ae4b3acb7a01f9d942bb
tree2e10fcf30d13a174ca98a0a4006c149102a26d95
parentab8075a2dac453e4bb720184ad9841d24f7055a4
Use AVPALETTE_COUNT instead of hard-coding 256.
This is consistent with other codecs and will also avoid a crash on the
memcpy to data[1] if AVPALETTE_SIZE ever increases.

Originally committed as revision 21399 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vb.c