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

FFmpeg trac at avcodec.org
Fri Jan 27 21:22:38 CET 2012


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

Comment (by beafdefx):

 There is no command.  On Android, all native code is compiled and loaded
 as shared libraries and invoked via JNI wrappers, so the code can not
 stand alone as an exe.

 The code path is pretty simple.  Allocate the resample context with the
 destination rate > source rate, feed it lots of samples, watch it use
 memory.  Memory goes away when the context is freed.  The resampling
 otherwise functions perfectly.

 I can try to extract the relevant bits into a command line program and run
 it that way, but I won't have time to get to that for another few days.

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


More information about the FFmpeg-trac mailing list