[mod_av] Reduce error level to warning for "Could not decode frame".

This commit is contained in:
Andrey Volk 2020-03-10 22:37:55 +04:00
parent 52a17066eb
commit 96c615e353
1 changed files with 1 additions and 1 deletions

View File

@ -1523,7 +1523,7 @@ GCC_DIAG_OFF(deprecated-declarations)
if ((error = avcodec_decode_audio4(context->audio_st[0].st->codec, &in_frame, &got_data, &pkt)) < 0) {
GCC_DIAG_ON(deprecated-declarations)
char ebuf[255] = "";
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Could not decode frame (error '%s')\n", get_error_text(error, ebuf, sizeof(ebuf)));
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Could not decode frame (error '%s')\n", get_error_text(error, ebuf, sizeof(ebuf)));
av_packet_unref(&pkt);
break;
}