projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
905de11
)
gsm demuxer: do not allocate packet twice.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 2 Nov 2011 22:30:49 +0000
(18:30 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 2 Nov 2011 23:36:04 +0000
(19:36 -0400)
fixes memleak with raw gsm demuxing.
libavformat/gsmdec.c
patch
|
blob
|
blame
|
history
diff --git
a/libavformat/gsmdec.c
b/libavformat/gsmdec.c
index
291e2c5
..
8c73c7b
100644
(file)
--- 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;