msdkdec: Fix uninitialized variables

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1731>
This commit is contained in:
Mengkejiergeli Ba 2022-02-17 15:16:40 +08:00 committed by GStreamer Marge Bot
parent e1090c152c
commit b41c70aed5

View file

@ -611,7 +611,7 @@ gst_msdkdec_set_src_caps (GstMsdkDec * thiz, gboolean need_allocation)
GstVideoFormat format;
guint width, height;
guint alloc_w, alloc_h;
int out_width, out_height;
int out_width = 0, out_height = 0;
const gchar *format_str;
GstStructure *outs = NULL;
const gchar *out_format;