metadata.c don't store encoder filename for all the decoders

there are only 4 encoder capable codecs just make it a function
and add a macro to keep it sane

Change-Id: Iac8833226434f8436bc678f3e409f462764d8fdc
This commit is contained in:
William Wilgus 2024-12-24 01:47:18 -05:00
parent f6b13c0fd0
commit 25ab00465e
3 changed files with 73 additions and 59 deletions

View file

@ -190,7 +190,7 @@ const char * get_codec_filename(int cod_spec)
tmp_fmt = AFMT_UNKNOWN;
}
fname = (type == CODEC_TYPE_ENCODER) ?
audio_formats[tmp_fmt].codec_enc_root_fn :
get_codec_enc_root_fn(tmp_fmt) :
audio_formats[tmp_fmt].codec_root_fn;
logf("%s: %d - %s",