swscale: Fix scaling for unscaled dithered planar convertions.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 10 May 2011 12:40:05 +0000 (14:40 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 10 May 2011 12:43:34 +0000 (14:43 +0200)
commit7bea13f111746eb7b34caa2cda46cc621728ee2a
tree302664e17e9b318a474f1944b4aac807317d7b48
parentb97b4b58a6e1ac595002b3e3f3469161771c6003
swscale: Fix scaling for unscaled dithered planar convertions.

This fixes some overflow in bright areas and ensures that the maximum brightness level is
mapped to the maximum without cliping and without showing dither patterens in flat max
brightness areas.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/swscale.c