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

Alban Bedel albeu
Thu May 19 01:44:15 CEST 2005


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.

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.

	Albeu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lavc_max_samples.diff
Type: application/octet-stream
Size: 4885 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20050519/25a1bf65/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lavc_gsm.diff
Type: application/octet-stream
Size: 5057 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20050519/25a1bf65/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg_configure_libgsm.diff
Type: application/octet-stream
Size: 1535 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20050519/25a1bf65/attachment-0002.obj>



More information about the ffmpeg-devel mailing list