Commit ecaac6df authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fail properly for unknown G726 bit rates

(cherry picked from commit 17461bf4)
parent c5a00ce7
......@@ -1096,6 +1096,10 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
id->psz_enc = "G726-40";
id->pf_packetize = rtp_packetize_g726_40;
break;
default:
msg_Err( p_stream, "cannot add this stream (unsupported "
"G.726 bit rate: %u)", p_fmt->i_bitrate );
goto error;
}
break;
case VLC_FOURCC( 'a', '5', '2', ' ' ):
......@@ -1247,7 +1251,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
default:
msg_Err( p_stream, "cannot add this stream (unsupported "
"codec:%4.4s)", (char*)&p_fmt->i_codec );
"codec: %4.4s)", (char*)&p_fmt->i_codec );
goto error;
}
if (id->i_payload_type >= 96)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment