gsm demuxer: do not allocate packet twice.

fixes memleak with raw gsm demuxing.
This commit is contained in:
Justin Ruggles 2011-11-02 18:30:49 -04:00
parent 905de11907
commit 894bc1d322

View File

@ -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;