Browse Source

Fix a mem leak in av_find_stream_info().

Patch by Erik Hovland erik hovland org

Originally committed as revision 14276 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Erik Hovland Benoit Fouet 17 years ago
parent
commit
be390a4e2e
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/utils.c

+ 3
- 1
libavformat/utils.c View File

@@ -2020,8 +2020,10 @@ int av_find_stream_info(AVFormatContext *ic)
}

pkt= add_to_pktbuf(&ic->packet_buffer, &pkt1);
if(av_dup_packet(pkt) < 0)
if(av_dup_packet(pkt) < 0) {
av_free(duration_error);
return AVERROR(ENOMEM);
}

read_size += pkt->size;



Loading…
Cancel
Save