dr_81: initialize p_decoded with 0's
[email protected] (Michael Krufky)
| Newsgroups | gmane.comp.video.videolan.libdvbpsi.devel |
|---|---|
| Message-ID | <[email protected]> |
libdvbpsi | branch: master | Michael Krufky <[email protected]> | 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 <[email protected]> > 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); _______________________________________________ libdvbpsi-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libdvbpsi-devel