libs: decoder: mpeg4: fail if return value is not OK
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 8 Aug 2017 14:12:13 +0000 (16:12 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 8 Aug 2017 14:15:46 +0000 (16:15 +0200)
commit4e27245f2893c1d2fef95dca2400ebfc16a3d93c
tree50a0429b154ed63a1d7f4be8b8c831e0ded04664
parent067968ae74f321ae9927d43af8b9deab923d17ca
libs: decoder: mpeg4: fail if return value is not OK

Coverity scan bug:

An assigned value that is never used may represent unnecessary
computation, an incorrect algorithm, or possibly the need for cleanup
or refactoring.

In the return value of decode_slice() or
gst_mpeg4_parse_video_packet_header() are not success, thus fail
decode_packet() function.
gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.c