OSDN Git Service

libavformat/oggdec: Free stream private when header parsing fails.
authorChris Cunningham <chcunningham@chromium.org>
Mon, 9 May 2016 22:27:29 +0000 (15:27 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 11 May 2016 01:50:37 +0000 (03:50 +0200)
commit542f725964e52201000ec34e2f23229cf534ad3a
treebe2a971d5008dcf9b3b0d6475e4aa7a9af0dcdd5
parentd645182227e8830de4de59a7b9ebec1b7e714d12
libavformat/oggdec: Free stream private when header parsing fails.

Leaking this private structure opens up the possibility that it may
be re-used when parsing later packets in the stream. This is
problematic if the later packets are not the same codec type (e.g.
private allocated during Vorbis parsing, but later packets are Opus
and the private is assumed to be the oggopus_private type in
opus_header()).

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/oggdec.c