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

wm4 git at videolan.org
Fri Oct 3 03:47:44 CEST 2014


ffmpeg | branch: release/2.3 | wm4 <nfxjfg at googlemail.com> | Sat Aug 30 15:39:15 2014 +0200| [9e43d92d6a16417aa06b62f0375212d528d1a484] | 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>
(cherry picked from commit b173f5c15572cc82f68128599722e689df4ff137)

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

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

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

diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index f7d00c1..74df6e7 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