On Sun, Mar 8, 2015 at 11:41 PM, Hendrik Leppkes <[email protected]> wrote: > On Mon, Mar 9, 2015 at 12:38 AM, Vittorio Giovara > <[email protected]> wrote: >> avpriv_mpa_decode_header() accesses codec_id. >> >> CC: [email protected] >> Bug-Id: CID 1274039 >> --- >> libavformat/mp3dec.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c >> index bf12fdb..78cb638 100644 >> --- a/libavformat/mp3dec.c >> +++ b/libavformat/mp3dec.c >> @@ -55,7 +55,7 @@ static int mp3_read_probe(AVProbeData *p) >> int fsize, frames, sample_rate; >> uint32_t header; >> uint8_t *buf, *buf0, *buf2, *end; >> - AVCodecContext avctx; >> + AVCodecContext avctx = { 0 }; >> >> buf0 = p->buf; >> end = p->buf + p->buf_size - sizeof(uint32_t); >> -- >> 1.9.3 (Apple Git-50) >> > > > AVCodecContext on the stack seems like something that should not be, > especially since this is avformat and not avcodec...
tbh I was kinda puzzled about that myself... -- Vittorio _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
