Browse Source

gsm demuxer: do not allocate packet twice.

fixes memleak with raw gsm demuxing.
tags/n0.9
Justin Ruggles 14 years ago
parent
commit
894bc1d322
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      libavformat/gsmdec.c

+ 0
- 3
libavformat/gsmdec.c 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;



Loading…
Cancel
Save