Fix buffer overrun if idx is negative (it can be down to -23>>4), by prepending
authorRonald S. Bultje <rsbultje@gmail.com>
Mon, 9 Aug 2010 13:54:59 +0000 (13:54 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Mon, 9 Aug 2010 13:54:59 +0000 (13:54 +0000)
commitaf0a61cc4045fcd4e875799aac93711be95ed660
treeddf37b626c8d12d276f83dc80ec08041968fb34d
parentb5c4bb989d4085625f212b9b6378e4ee0a1a9ca8
Fix buffer overrun if idx is negative (it can be down to -23>>4), by prepending
two padding zeroes before it. Should fix fate failures on openBSD and crashes
on MacOSX (that I cannot reproduce).

Originally committed as revision 24750 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/wmavoice.c