[Ffmpeg-devel] [Ffmpeg-devel-old] [PATCH] Limit number of processed sample with pcm codecs and a libgsm warper

Michael Niedermayer michaelni
Mon May 23 01:39:52 CEST 2005


On Thursday 19 May 2005 01:44, Alban Bedel wrote:
> Hi all,
> i'm hacking a little voip prog that use lavc. However i run into a small
> problem with the pcm formats and g726. The encoder encode as much data
> as there is space in the output buffer. One can hack a bit with pcm
> and alaw,ulaw. But then with g726 that's start to be messy.
> The patch add a max_samples field to the avctx, if non 0 the pcm and g726
> encoder and decoder will only process at most that many samples in a run.

i agree that some max sample limit is needed but iam not sure if 
AVCodecContext is the right place for it

> Then i'm needing gsm, so i made a little warper to libgsm. Dunno if a
> "native lavc" gsm enc/decoder is planned but for now that fill the gap.
> I also attached a patch for ffmpeg configure.



More information about the ffmpeg-devel mailing list