[Libav-user] avformat_find_stream_info memory leak

Zanelli Franco fzanelli at tecnosens.it
Mon Aug 27 16:19:25 CEST 2012


Did someone experience this problem?

Thank you

Il 22/08/2012 16:09, Zanelli Franco ha scritto:
> I experienced that avformat_find_stream_info(), during the stream scan
> of an ip camera, has a strong memory leakage, maybe because it buffers
> the data to probe. Did someone experience the same problem? Is there a
> way to free the memory?
>
> thank you
>
> ps: this is my code:
>
>        // format context
>        AVFormatContext *fc = avformat_alloc_context();
>       
>        // start the input stream
>        int res;
>        res = avformat_open_input(&fc, url, 0, &opts);
>        if (res != 0) {
>            return res;
>        }
>
>        // stream  info
>        res = avformat_find_stream_info(fc, &opts);
>        if (!(res >= 0)) {
>            return res;
>        }
>
>
>
> Il 22/08/2012 15:58, Andrey Utkin ha scritto:
>> 2012/8/21 Zanelli Franco <fzanelli at tecnosens.it>:
>>> ps: this is my code:
>> Please minimize your code.
>>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user



More information about the Libav-user mailing list