diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-01-04 16:05:51 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-01-06 17:59:54 +0100 |
commit | d894f74762bc95310ba23f804b7ba8dffc8f6646 (patch) | |
tree | 6649c492be75bd2ce653d10c0932bc92de0a801d /libavformat/oggdec.c | |
parent | 89b51b570daa80e6e3790fcd449fe61fc5574e07 (diff) | |
download | ffmpeg-d894f74762bc95310ba23f804b7ba8dffc8f6646.tar.gz |
oggdec: make sure the private parse data is cleaned up
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r-- | libavformat/oggdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index a6cd31c514..d8f89b8f80 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -533,6 +533,10 @@ static int ogg_read_close(AVFormatContext *s) for (i = 0; i < ogg->nstreams; i++) { av_free(ogg->streams[i].buf); + if (ogg->streams[i].codec && + ogg->streams[i].codec->cleanup) { + ogg->streams[i].codec->cleanup(s, i); + } av_free(ogg->streams[i].private); } av_free(ogg->streams); |