video: avoid overflows when doing int operations for size
authorThiago Santos <ts.santos@sisa.samsung.com>
Mon, 9 Jun 2014 22:44:56 +0000 (19:44 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Tue, 10 Jun 2014 02:38:39 +0000 (23:38 -0300)
commitfb3a9d1bc5f4f40957a58d7cad7ca77242e2a73f
tree058bcda0790be303d8d4612779c5be9da5257bf0
parent8810ada4cdae732b032299166fa1ed26c3c7aff6
video: avoid overflows when doing int operations for size

size is a gsize, so cast the operands to it to avoid overflows
and setting wrong value to the video size.

Includes tests.

https://bugzilla.gnome.org/show_bug.cgi?id=731195
gst-libs/gst/video/video-info.c
tests/check/libs/video.c