- ERROR_IF(i == FF_ARRAY_ELEMS(aac_pce_configs), "Unsupported channel layout\n");
- av_log(avctx, AV_LOG_INFO, "Using a PCE to encode channel layout\n");
+ av_get_channel_layout_string(buf, sizeof(buf), -1, avctx->channel_layout);
+ ERROR_IF(i == FF_ARRAY_ELEMS(aac_pce_configs), "Unsupported channel layout \"%s\"\n", buf);
+ av_log(avctx, AV_LOG_INFO, "Using a PCE to encode channel layout \"%s\"\n", buf);