pike.git / lib / modules / Audio.pmod / Codec.pmod

version» Context lines:

pike.git/lib/modules/Audio.pmod/Codec.pmod:50: Inside #if constant(_Ffmpeg.ffmpeg)
   if(stringp(codecname))    init(codecname);    }       private this_program init(string codecname) {       mixed err;    string cn = upper_case(codecname);      #if 0 -  if(zero_type(codec_map[cn]) || !codec_map[cn]->decoder) +  if(!has_index(codec_map, cn) || !codec_map[cn]->decoder)    error("Decoder codec '"+codecname+"' isn't supported.\n");       err = catch(codec = _Ffmpeg.ffmpeg(codec_map[cn]->decoder[1], 0));   #else    foreach(Array.filter(_Ffmpeg.list_codecs(), lambda(mapping m, string n) { return m->name == n; }, codecname), mapping fc)    if(!fc->encoder_flg &&   #if constant(_Ffmpeg.AVMEDIA_TYPE_AUDIO)    fc->type == _Ffmpeg.AVMEDIA_TYPE_AUDIO   #else    fc->type == _Ffmpeg.CODEC_TYPE_AUDIO