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

2015-12-08 Thread Lvqier
On 12/8/15 7:05 PM, Hendrik Leppkes wrote: On Tue, Dec 8, 2015 at 11:46 AM, Lvqier wrote: On 12/8/15 6:26 PM, Hendrik Leppkes wrote: On Tue, Dec 8, 2015 at 11:19 AM, Lvqier wrote: Hi Hendrik, The attached is another patch which uses av_reallocp to fix this issue. Thanks, that looks

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

2015-12-08 Thread Lvqier
On 12/8/15 6:26 PM, Hendrik Leppkes wrote: On Tue, Dec 8, 2015 at 11:19 AM, Lvqier 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

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

2015-12-08 Thread Lvqier
Hi Hendrik, The attached is another patch which uses av_reallocp to fix this issue. /Best Regards, lvqier - lvq...@gmail.com <mailto:lvq...@gmail.com> / ** 青春如烟,唱一首笑忘歌 On 12/5/15 11:23 PM, Lvqier wrote: Ok, I will try av_reallocp /Best R

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

2015-12-05 Thread Lvqier
Ok, I will try av_reallocp /Best Regards, lvqier - lvq...@gmail.com <mailto:lvq...@gmail.com> / ** 青春如烟,唱一首笑忘歌 On 12/5/15 7:27 PM, Hendrik Leppkes wrote: On Sat, Dec 5, 2015 at 11:02 AM, Qier LU wrote: Hi Michael, The attached is against git

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

2015-12-03 Thread Lvqier
codec libx264 -pix_fmt yuv420p -vprofile baseline -q 2 -r 25 -g 25 -dn -f stream_segment -segment_format mpegts -segment_time 10 /dev/shm/capture/libav-%010d.ts I have read the source code of libavformat/segment.c and make a patch which is attached as well to fix it. -- /Best Regards,