Oops, another pondlife puddle of red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16862 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
20d57a30e3
commit
3d0b7c6901
1 changed files with 5 additions and 4 deletions
|
@ -838,10 +838,11 @@ const char *get_codec_filename(const int cod_spec)
|
|||
afmt, fname ? fname : "<unknown>");
|
||||
#else /* !HAVE_RECORDING */
|
||||
/* Always decoder */
|
||||
if ((unsigned)cod_spec >= AFMT_NUM_CODECS)
|
||||
cod_spec = AFMT_UNKNOWN;
|
||||
fname = audio_formats[cod_spec].codec_root_fn;
|
||||
logf("Codec: %d - %s", cod_spec, fname ? fname : "<unknown>");
|
||||
int afmt = cod_spec;
|
||||
if ((unsigned)afmt >= AFMT_NUM_CODECS)
|
||||
afmt = AFMT_UNKNOWN;
|
||||
fname = audio_formats[afmt].codec_root_fn;
|
||||
logf("Codec: %d - %s", afmt, fname ? fname : "<unknown>");
|
||||
#endif /* HAVE_RECORDING */
|
||||
|
||||
return fname;
|
||||
|
|
Loading…
Reference in a new issue