avcodec/utils: remove access of AV_SAMPLE_FMT_NB