libs: decoder: h265: check for null
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 8 Aug 2017 13:49:27 +0000 (15:49 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 8 Aug 2017 14:15:45 +0000 (16:15 +0200)
commit067968ae74f321ae9927d43af8b9deab923d17ca
tree22744d2bd0cf70559fc09eec8bda9da8b0712139
parentd879664a0ad55a65f8604be3a44375bc1117633b
libs: decoder: h265: check for null

Coverity scan bug:

Dereference after null check: Either the check against null is
unnecessary, or there may be a null pointer dereference.

While looking for hte lowest poc, according to rest of the code, the
picture in the dbp (decoded picture buffer) might be NULL, thus we
could check for a NULL picture before assigned as found.

Also, split a comma operator because it is considered as a bad
practice because it possible side effects.
gst-libs/gst/vaapi/gstvaapidecoder_h265.c