Re: [PATCH] dr_81: initialize p_decoded with 0's
Jean-Paul Saman <[email protected]>
| Newsgroups | gmane.comp.video.videolan.libdvbpsi.devel |
|---|---|
| Message-ID | <CAK9US3CpoVJcc1sy6P_5yFdmbVC+_fYpNFg64yLLZRDTUyD11g@mail.gmail.com> |
Merged, Thanks Kind regards, Jean-Paul Saman On Tue, Feb 4, 2014 at 2:14 PM, Michael Krufky <[email protected]> wrote: > John-Paul, > > Thanks for merging my changes. Here's another small one: > > The following patch (dr_81: initialize p_decoded with 0's) silences a > warning generated by the coverity checker. I have also included it in > my git tree if you'd prefer to simply pull it via git. > > (actual patch follows below pull request) > > Cheers, > > Michael Krufky > > The following changes since commit > 6ab64fb30a0daa3a042d71abb6addd110d6e441a: > > ATSC MGT: make sure all members are initialized. (2014-02-04 11:20:45 > +0100) > > are available in the git repository at: > > https://github.com/mkrufky/libdvbpsi.git pending > > for you to fetch changes up to 990aacdb898c0d2bab6a114de02a83814bb211d2: > > dr_81: initialize p_decoded with 0's (2014-02-04 08:00:32 -0500) > > > Michael Krufky (1): > dr_81: initialize p_decoded with 0's > > src/descriptors/dr_81.c | 2 ++ > 1 file changed, 2 insertions(+) > > > > commit 990aacdb898c0d2bab6a114de02a83814bb211d2 > Author: Michael Krufky <[email protected]> > Date: Wed Dec 25 22:41:49 2013 -0500 > > dr_81: initialize p_decoded with 0's > > Signed-off-by: Michael Krufky <[email protected]> > > 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