[Libav-user] avformat_find_stream_info memory leak

Zanelli Franco fzanelli at tecnosens.it
Wed Aug 22 16:09:28 CEST 2012


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.
>


More information about the Libav-user mailing list