diff --git a/doc/trivial_example.c b/doc/trivial_example.c index 692d2608ac01296c57b1f39ad33d3b02f7d6aab1..7a0fc56a863bef7485212ef389f0623d31d98b76 100644 --- a/doc/trivial_example.c +++ b/doc/trivial_example.c @@ -35,7 +35,7 @@ #include <opus.h> #include <stdio.h> -/*The frame size in hardcoded for this sample code but it doesn't have to be*/ +/*The frame size is hardcoded for this sample code but it doesn't have to be*/ #define FRAME_SIZE 960 #define SAMPLE_RATE 48000 #define CHANNELS 2 diff --git a/src/opus_encoder.c b/src/opus_encoder.c index 70433d2966ec399d17822bcba9990d7cf53d2975..d19ed8b9ae9c01043a72f35fefcb784bee83b9e7 100644 --- a/src/opus_encoder.c +++ b/src/opus_encoder.c @@ -1913,7 +1913,7 @@ opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_ } /* Count ToC and redundancy */ ret += 1+redundancy_bytes; - if (!st->use_vbr && ret >= 3) + if (!st->use_vbr) { if (opus_packet_pad(data, ret, max_data_bytes) != OPUS_OK)