comparison utils.c @ 3590:b22fa30c033e libavformat

Fix a mem leak in av_find_stream_info(). Patch by Erik Hovland erik hovland org
author benoit
date Fri, 18 Jul 2008 07:13:56 +0000
parents 813a493658ee
children c6186d4ceda0
comparison
equal deleted inserted replaced
3589:f306b45cab7e 3590:b22fa30c033e
2018 } 2018 }
2019 break; 2019 break;
2020 } 2020 }
2021 2021
2022 pkt= add_to_pktbuf(&ic->packet_buffer, &pkt1); 2022 pkt= add_to_pktbuf(&ic->packet_buffer, &pkt1);
2023 if(av_dup_packet(pkt) < 0) 2023 if(av_dup_packet(pkt) < 0) {
2024 av_free(duration_error);
2024 return AVERROR(ENOMEM); 2025 return AVERROR(ENOMEM);
2026 }
2025 2027
2026 read_size += pkt->size; 2028 read_size += pkt->size;
2027 2029
2028 st = ic->streams[pkt->stream_index]; 2030 st = ic->streams[pkt->stream_index];
2029 if(codec_info_nb_frames[st->index]>1) 2031 if(codec_info_nb_frames[st->index]>1)