You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
gsm demuxer: do not allocate packet twice.
fixes memleak with raw gsm demuxing.
This commit is contained in:
@@ -38,9 +38,6 @@ static int gsm_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
|
|
||||||
size = GSM_BLOCK_SIZE * 32;
|
size = GSM_BLOCK_SIZE * 32;
|
||||||
|
|
||||||
if (av_new_packet(pkt, size) < 0)
|
|
||||||
return AVERROR(ENOMEM);
|
|
||||||
|
|
||||||
pkt->pos = avio_tell(s->pb);
|
pkt->pos = avio_tell(s->pb);
|
||||||
pkt->stream_index = 0;
|
pkt->stream_index = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user