decoder: mpeg4: fix uninitialized variables. 97/33097/1
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 25 Nov 2014 10:46:12 +0000 (11:46 +0100)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Mon, 5 Jan 2015 15:55:21 +0000 (16:55 +0100)
commite292cbcf964703acab938a9339e4ced07b855bf8
tree8389f5aaaed673c057a37645ac7dd6f096646f96
parent3cd05c8e5aecb9206a111c4f5ebb44887b1b3028
decoder: mpeg4: fix uninitialized variables.

Fix gst_vaapi_decoder_mpeg4_parse() to initialize the packet type to
GST_MPEG4_USER_DATA so that a parse error would result in skipping
that packet. Also fix gst_vaapi_decoder_mpeg4_decode_codec_data() to
initialize status to GST_VAAPI_DECODER_STATUS_SUCCESS.

Change-Id: I0a6410b87ebbd686d1ed561b0575b14aae08a78f
Origin: upstream
Bug-Tizen: TC-2113/part
gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.c