swscale: fix signed overflow in yuv2mono_X_c_template
authorMans Rullgard <mans@mansr.com>
Sat, 26 Nov 2011 21:53:00 +0000 (21:53 +0000)
committerMans Rullgard <mans@mansr.com>
Sat, 26 Nov 2011 22:53:47 +0000 (22:53 +0000)
commit7c5ce99bd92fb480b7235cbc9a005f7e6d31f1d7
treef22a4994d1a41a0f921bf4936769a542a0c592c3
parent8540dcfd7af14da4080770dfbfa997cffdd0878b
swscale: fix signed overflow in yuv2mono_X_c_template

As old bits are shifted out of the accumulator, they cause signed
overflows when they reach the end.  Making the variable unsigned fixes
this.

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