Skip to content

Commit

Permalink
opus: support setting bitrate
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkka-ollakka committed Feb 9, 2014
1 parent 5507803 commit bdf9d06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/codec/opus.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,10 @@ static int OpenEncoder(vlc_object_t *p_this)
goto error;
}

/* TODO: vbr, bitrate, fec */
/* TODO: vbr, fec */

if( enc->fmt_out.i_bitrate )
opus_multistream_encoder_ctl(sys->enc, OPUS_SET_BITRATE( enc->fmt_out.i_bitrate ));

/* Buffer for incoming audio, since opus only accepts frame sizes that are
multiples of 2.5ms */
Expand Down

0 comments on commit bdf9d06

Please sign in to comment.