[libdvbpsi-devel] dr_81: initialize p_decoded with 0's

Michael Krufky git at videolan.org
Wed Feb 5 09:18:26 CET 2014


libdvbpsi | branch: master | Michael Krufky <mkrufky at linuxtv.org> | Wed Dec 25 22:41:49 2013 -0500| [990aacdb898c0d2bab6a114de02a83814bb211d2] | committer: Michael Krufky

dr_81: initialize p_decoded with 0's

Signed-off-by: Michael Krufky <mkrufky at linuxtv.org>

> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=990aacdb898c0d2bab6a114de02a83814bb211d2
---

 src/descriptors/dr_81.c |    2 ++
 1 file changed, 2 insertions(+)

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);



More information about the libdvbpsi-devel mailing list