svq1enc: fix signed multiplication overflow
authorMans Rullgard <mans@mansr.com>
Sat, 26 Nov 2011 16:50:51 +0000 (16:50 +0000)
committerMans Rullgard <mans@mansr.com>
Sat, 26 Nov 2011 18:50:27 +0000 (18:50 +0000)
commitf7f892e4d5bded48b08e7b776a5fb7c350496f2b
tree218c98b5a39d1cf4acdb239ef62a73a06776d5e2
parente4faa31a0a68dbff320b419a3a73d6b028d770d5
svq1enc: fix signed multiplication overflow

This multiplication can overflow the signed range but not the
unsigned.  After right-shifting it will thus fit in the signed
range again.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/svq1enc.c