[FFmpeg-cvslog] oggdec: fix invalid free on error

wm4 git at videolan.org
Sat Aug 30 17:00:15 CEST 2014


ffmpeg | branch: master | wm4 <nfxjfg at googlemail.com> | Sat Aug 30 15:39:15 2014 +0200| [b173f5c15572cc82f68128599722e689df4ff137] | committer: Michael Niedermayer

oggdec: fix invalid free on error

The read_packet callback passes a pointer to a stack-allocated AVPacket.
Attempting to free it with av_free() makes no sense.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b173f5c15572cc82f68128599722e689df4ff137
---

 libavformat/oggdec.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index f17393b..8f146e4 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -817,7 +817,6 @@ retry:
     return psize;
 fail:
     av_free_packet(pkt);
-    av_free(pkt);
     return AVERROR(ENOMEM);
 }
 



More information about the ffmpeg-cvslog mailing list