From 2d8b19591144de87dad2a5aebee54ba0dd60fb57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 11 Mar 2014 11:18:11 +0100 Subject: [PATCH] atdec: Initialize the audio description with zeroes --- sys/applemedia/atdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/applemedia/atdec.c b/sys/applemedia/atdec.c index 32e5ca7d47..0fe8df013e 100644 --- a/sys/applemedia/atdec.c +++ b/sys/applemedia/atdec.c @@ -213,6 +213,8 @@ gst_caps_to_at_format (GstCaps * caps, AudioStreamBasicDescription * format) int rate = 0; GstStructure *structure; + memset (format, 0, sizeof (AudioStreamBasicDescription)); + structure = gst_caps_get_structure (caps, 0); gst_structure_get_int (structure, "rate", &rate); gst_structure_get_int (structure, "channels", &channels);