vaapivideobufferpool: don't shift by negative since it's undefined
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 1 Aug 2017 15:39:04 +0000 (17:39 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 1 Aug 2017 15:39:04 +0000 (17:39 +0200)
commitde0f8936f82ef6cdede02299def8a50993fe92c7
treee95c7141578c24cce7f14ef7247c4d43e3a8bda6
parent19444ce1840d76e555d283a3f12d87b1b25ca529
vaapivideobufferpool: don't shift by negative since it's undefined

The function g_bit_nth_lsf() may return -1 if the request bit position
is not avaible. Thus, this patch check if the return value is not -1
in order to continue.
gst/vaapi/gstvaapivideobufferpool.c