aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2014-08-30 15:39:15 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-30 16:38:14 +0200
commitb173f5c15572cc82f68128599722e689df4ff137 (patch)
tree156b2e4e0076dd9c62dc090ccbc26756f1b079e5
parente2cd28c9265e21b1eeeceaece1da4109712e7555 (diff)
downloadffmpeg-b173f5c15572cc82f68128599722e689df4ff137.tar.gz
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@gmx.at>
-rw-r--r--libavformat/oggdec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index f17393bfa8..8f146e49fe 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);
}