video-scaler: fix scaling of odd width for YUY2 formats
authorWim Taymans <wtaymans@redhat.com>
Wed, 17 Jun 2015 14:43:03 +0000 (16:43 +0200)
committerWim Taymans <wtaymans@redhat.com>
Wed, 17 Jun 2015 14:43:03 +0000 (16:43 +0200)
commitf4a5277340073f29f1de8600581fca6e77ef184d
tree660c9ce26ba0c112b13f031155264b938df3959e
parent70363766cd1b38d2be0534fa066e1d2fc4e6581f
video-scaler: fix scaling of odd width for YUY2 formats

We need to scale groups of 4 bytes for YUY2 formats so round up to 4.
It's possible that there is no Y byte for the last pixel so make sure
we clamp correctly.
gst-libs/gst/video/video-scaler.c