[vlc-devel] [WIP/PATCH] avcodec: ensure correct buffer size
ileoo at videolan.org
Tue Oct 29 12:49:57 CET 2013
On Tue, Oct 29, 2013 at 12:56:26AM -0400, Tristan Matthews wrote:
> > Does the ulaw set p_sys->i_frame_size?
> This case is for libavcodec's pcm ulaw encoder ("mulaw"), which sets
> context->frame_size to 0.
> I believe the proper solution is probably to do some buffering of the
> input to ensure that avcodec_fill_audio_frame is always called with a
> buffer size that it likes. I will revise my patch and resend.
Input is buffered if codec tells context->frame_size to be != 0, but I
have understood that in case of context->frame_size == 0 there is no
matter which size frames are given to encoder.
But thanks for the patch, I'll check it later
Ban the bomb. Save the world for conventional warfare.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 490 bytes
Desc: Digital signature
More information about the vlc-devel