[FFmpeg-devel] [PATCH] DV muxer: reduce audio fifo size to AVCODEC_MAX_AUDIO_FRAME_SIZE

Baptiste Coudurier baptiste.coudurier
Thu Sep 10 22:38:00 CEST 2009


On 09/10/2009 01:12 PM, Janne Grunau wrote:
> Hi,
> after changing the fifo avaible space check to av_fifo_space, it's
> possible to realloc the audio fifos in the DV muxer. The default size is
> 100 * AVCODEC_MAX_AUDIO_FRAME_SIZE, currently 19 megabyte per stream.
> The short sample muxed during lavftest doesn't need to realloc the fifo
> from the new default size of AVCODEC_MAX_AUDIO_FRAME_SIZE. The largest
> realloc I've seen during testing was to 6M. Reducing the memory
> consumption of the DV muxer by a factor of 2 (meassured with massif).

The correct way to mux audio in dv is to use audio interleave code 
mechanism in audiointerleave.c

Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org

More information about the ffmpeg-devel mailing list