[FFmpeg-cvslog] gsm demuxer: do not allocate packet twice.
Justin Ruggles
git at videolan.org
Thu Nov 3 02:23:14 CET 2011
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Wed Nov 2 18:30:49 2011 -0400| [894bc1d322c18b7f320aa6234e2c921e649da734] | committer: Justin Ruggles
gsm demuxer: do not allocate packet twice.
fixes memleak with raw gsm demuxing.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=894bc1d322c18b7f320aa6234e2c921e649da734
---
libavformat/gsmdec.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/libavformat/gsmdec.c b/libavformat/gsmdec.c
index 291e2c5..8c73c7b 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;
More information about the ffmpeg-cvslog
mailing list