[FFmpeg-devel] [PATCH] G.722 decoder

Carl Eugen Hoyos cehoyos
Thu Sep 9 09:49:27 CEST 2010


Martin Storsj? <martin <at> martin.st> writes:

> Implemented it, and it works more or less. I had to add an A flag to the 
> lowres option in lavc/options.c. Also, if lowres is enabled, I set the 
> sample rate to the half in g722_init, but it doesn't propagate 
> automatically to the output when transcoding with ffmpeg, since it 
> probably copies the original sample rate before opening the decoder.

I suspect you have to right shift the sample_rate in avcodec_open by lowres (and
remove AVMEDIA_TYPE_VIDEO from the lowres sanity check and change your decoder
definition accordingly).

Carl Eugen




More information about the ffmpeg-devel mailing list