From: Maksym Veremeyenko Date: Thu, 19 Jul 2012 09:39:24 +0000 (+0300) Subject: fix leak of dv packets X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=858eaebe62c48e378b1f23b82ad706448a5ec86f;p=mlt fix leak of dv packets --- diff --git a/src/modules/avformat/producer_avformat.c b/src/modules/avformat/producer_avformat.c index 263972b8..8b327c37 100644 --- a/src/modules/avformat/producer_avformat.c +++ b/src/modules/avformat/producer_avformat.c @@ -790,8 +790,11 @@ static int get_basic_info( producer_avformat self, mlt_profile profile, const ch if ( ret >= 0 && pkt.stream_index == self->video_index && pkt.size > 0 ) { get_aspect_ratio( properties, format->streams[ self->video_index ], codec_context, &pkt ); + av_free_packet(&pkt); break; } + if ( ret >= 0 ) + av_free_packet(&pkt); } } else