Commit 894bc1d3 authored by Justin Ruggles's avatar Justin Ruggles

gsm demuxer: do not allocate packet twice.

fixes memleak with raw gsm demuxing.
parent 905de119
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment