Commit 9882bcc3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Export bitrate for the benefit of stream output

parent 66626226
...@@ -1442,6 +1442,11 @@ static int EncoderOpen( vlc_object_t *p_this ) ...@@ -1442,6 +1442,11 @@ static int EncoderOpen( vlc_object_t *p_this )
p_sys->i_s16tolog = ULAW; p_sys->i_s16tolog = ULAW;
} }
p_enc->fmt_out.i_bitrate =
p_enc->fmt_in.audio.i_channels *
p_enc->fmt_in.audio.i_rate *
p_enc->fmt_in.audio.i_bitspersample;
msg_Dbg( p_enc, "samplerate:%dHz channels:%d bits/sample:%d", msg_Dbg( p_enc, "samplerate:%dHz channels:%d bits/sample:%d",
p_enc->fmt_out.audio.i_rate, p_enc->fmt_out.audio.i_channels, p_enc->fmt_out.audio.i_rate, p_enc->fmt_out.audio.i_channels,
p_enc->fmt_out.audio.i_bitspersample ); p_enc->fmt_out.audio.i_bitspersample );
......
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