aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-11-02 18:30:49 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-02 19:36:04 -0400
commit894bc1d322c18b7f320aa6234e2c921e649da734 (patch)
tree809d40c19d7dcc89213ed1bde3a2135258616d2f /libavformat
parent905de1190796d3e62d6545e6af34f2c413a68a47 (diff)
downloadffmpeg-894bc1d322c18b7f320aa6234e2c921e649da734.tar.gz
gsm demuxer: do not allocate packet twice.
fixes memleak with raw gsm demuxing.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/gsmdec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/gsmdec.c b/libavformat/gsmdec.c
index 291e2c56aa..8c73c7b447 100644
--- a/libavformat/gsmdec.c
+++ b/libavformat/gsmdec.c
@@ -38,9 +38,6 @@ static int gsm_read_packet(AVFormatContext *s, AVPacket *pkt)
size = GSM_BLOCK_SIZE * 32;
- if (av_new_packet(pkt, size) < 0)
- return AVERROR(ENOMEM);
-
pkt->pos = avio_tell(s->pb);
pkt->stream_index = 0;