video-scaler: make sure to clamp to max width
authorWim Taymans <wtaymans@redhat.com>
Fri, 12 Jun 2015 14:52:27 +0000 (16:52 +0200)
committerWim Taymans <wtaymans@redhat.com>
Fri, 12 Jun 2015 14:58:10 +0000 (16:58 +0200)
commit1fbbff491acfc92fb2f37c9cf3d41e0e6175e5e4
tree73acb7ab7b64996594e005c8d1f573163cbf925a
parentf4f389483658e23ca7f410cc0633ce3fd358f70c
video-scaler: make sure to clamp to max width

When estimating the area that should first be vertically scaled, make
sure we clamp to the max input size or else we get invalid reads.
gst-libs/gst/video/video-scaler.c