[FFmpeg-trac] #942(swresample:closed): swresample leaks memory when sampling up
FFmpeg
trac at avcodec.org
Mon Jan 30 21:51:20 CET 2012
#942: swresample leaks memory when sampling up
------------------------------------+--------------------------------------
Reporter: beafdefx | Owner: michael
Type: defect | Status: closed
Priority: normal | Component: swresample
Version: git-master | Resolution: invalid
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+--------------------------------------
Comment (by beafdefx):
I don't think I understand. The output buffer is bigger than the input
buffer by exactly the ratio of the input sample rate to the output sample
rate, and I'm telling the resampler I have exactly room for 16000 samples
in each buffer. The return value from swr_convert is exactly 16000, so I
assume is is processing every sample in and placing every resampled sample
out. Am I perhaps misunderstanding the API?
Like I mentioned before, the resampling is working perfectly in my Android
code, empirically speaking. There is nothing wrong with the output. The
internal buffers inside swresample just appear to be growing out of
control when the output sample rate is greater than the input sample rate.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/942#comment:9>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list