Browse Source

avformat/utils: fix memleak with nobuffer

Fixes Ticket2802

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Michael Niedermayer 11 years ago
parent
commit
caa7a49481
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libavformat/utils.c

+ 3
- 3
libavformat/utils.c View File

@@ -2783,9 +2783,9 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
break;
}

if (ic->flags & AVFMT_FLAG_NOBUFFER) {
pkt = &pkt1;
} else {
if (ic->flags & AVFMT_FLAG_NOBUFFER)
free_packet_buffer(&ic->packet_buffer, &ic->packet_buffer_end);
{
pkt = add_to_pktbuf(&ic->packet_buffer, &pkt1,
&ic->packet_buffer_end);
if (!pkt) {


Loading…
Cancel
Save