[FFmpeg-devel] Memory leaks in libavformat/segment.c

Lvqier lvqier at gmail.com
Tue Dec 8 11:46:51 CET 2015


On 12/8/15 6:26 PM, Hendrik Leppkes wrote:
> On Tue, Dec 8, 2015 at 11:19 AM, Lvqier <lvqier at gmail.com> wrote:
>> Hi Hendrik,
>>
>>      The attached is another patch which uses av_reallocp to fix this issue.
>>
> Thanks, that looks almost good. But you should check for a negative
> return value, as all errors are negative.
Do you mean that the set_segment_filename function should return the 
value which returns from av_reallocp instead of AVERROR(ENOMEM) when it 
fails?
>
> - Hendrik
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

-- 
/Best Regards,
lvqier - lvqier at gmail.com <mailto:lvqier at gmail.com>
/

******************************************
青春如烟,唱一首笑忘歌



More information about the ffmpeg-devel mailing list