aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2013-12-26 03:41:49 (GMT)
committerMichael Krufky <mkrufky@linuxtv.org>2014-02-04 13:00:32 (GMT)
commit990aacdb898c0d2bab6a114de02a83814bb211d2 (patch)
tree8f026045c8baeaf7429bfbd0d9193fe80a223392
parent6ab64fb30a0daa3a042d71abb6addd110d6e441a (diff)
dr_81: initialize p_decoded with 0's
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
-rw-r--r--src/descriptors/dr_81.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/descriptors/dr_81.c b/src/descriptors/dr_81.c
index ca41c3d..31a7e77 100644
--- a/src/descriptors/dr_81.c
+++ b/src/descriptors/dr_81.c
@@ -63,6 +63,8 @@ dvbpsi_ac3_audio_dr_t *dvbpsi_DecodeAc3AudioDr(dvbpsi_descriptor_t *p_descriptor
if (!p_decoded)
return NULL;
+ memset(p_decoded, 0, sizeof (dvbpsi_ac3_audio_dr_t));
+
p_descriptor->p_decoded = (void*)p_decoded;
p_decoded->i_sample_rate_code = 0x07 & (buf[0] >> 5);

Privacy Policy