vaapidecode: sets return value in failure case.
authorMatteo Valdina <matteo.valdina@gmail.com>
Sat, 1 Sep 2018 01:48:13 +0000 (20:48 -0500)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 3 Sep 2018 13:38:33 +0000 (15:38 +0200)
In gst_vaapidecode_handle_frame, when there is a decode error
there is a code path the returns an uninitialized value.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=797006

gst/vaapi/gstvaapidecode.c

index cdb907f..423b7c6 100644 (file)
@@ -760,6 +760,7 @@ error_decode:
         ret = GST_FLOW_NOT_SUPPORTED;
         break;
       default:
+        ret = GST_FLOW_OK;
         GST_VIDEO_DECODER_ERROR (vdec, 1, STREAM, DECODE, ("Decoding error"),
             ("Decode error %d", status), ret);
         break;