[FFmpeg-trac] #942(swresample:new): swresample leaks memory when sampling up

FFmpeg trac at avcodec.org
Fri Jan 27 13:57:41 CET 2012


#942: swresample leaks memory when sampling up
--------------------------------------+------------------------------------
               Reporter:  beafdefx    |                  Owner:  michael
                   Type:  defect      |                 Status:  new
               Priority:  important   |              Component:  swresample
                Version:  git-master  |               Keywords:
             Blocked By:              |               Blocking:
Reproduced by developer:  0           |  Analyzed by developer:  0
--------------------------------------+------------------------------------
 Version 0.10

 Cross compiling for Android/ARM with C++, if that matters.

 Decoding and resampling are great for me until I have swresample resample
 upward in bitrate.  The memory usage is very obviously headed upward with
 no ceiling as I feed it data to resample.  Everything goes back to normal
 when I free the resample context.

 The leaking is very obvious when going from 44100 to 48000.  It's still
 present when going from 44100 to 44200, but much slower.  No problems
 downsampling.

 Perhaps there could also be a problem if resampling to a larger greater
 channel config or sample format.  Haven't tested that myself.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/942>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list