gsm demuxer: do not allocate packet twice.
fixes memleak with raw gsm demuxing.
This commit is contained in:
parent
905de11907
commit
894bc1d322
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user