[FFmpeg-devel] [Ffmpeg-devel] [PATCH] GSM-MS decoder and encoder

Michel Bardiaux mbardiaux
Mon Mar 31 13:46:44 CEST 2008


Baptiste Coudurier wrote:
> Hi,
> 
> Michel Bardiaux wrote:
>> Baptiste Coudurier wrote:
>>> Michel Bardiaux wrote:
>> [time for a big snip]
>>>> Michael has reported 13200 in aiff, do you also see 13200 for mov? Then 
>>>> accepting (OK, silently) 0, 13000 and 13200 when decoding solves your 
>>>> problem while leaving some safety.
>>> Yes.
>> OK then, my proposition is that on decoding, all 3 are accepted 
>> silently, anything else causes a warning (but is accepted); on encoding, 
>> anything else than 13000 elicits a warning and is forced to 13000.

Ok with this spec, or is it necessary to tolerate 13200 on encoding too 
because some muxer sets 13200 before init is called?

>>
>> But I can't find a way to know, in libgsm_init, whether it is called for 
>> enc or decoding. My mistake or is there none?
>>
> 
> You can check with AVCodecContext->AVCodec symbol I think.
> 
You mean, compare AVCodecContext->AVCodec->encode vs. NULL, right?

-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/




More information about the ffmpeg-devel mailing list