search for: max_payload_byt

Displaying 3 results from an estimated 3 matches for "max_payload_byt".

Did you mean: max_payload_bytes
2017 Apr 06
1
Encoding OPUS with difference bitrates
...of the second encoded frames is completely garbled. Appreciate if anyone can suggest how to handle this case. if(1) { opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrate_bps)); len[toggle] = opus_encode(enc, in, frame_size, data[toggle], max_payload_bytes); } if(1) { opus_encoder_ctl(enc, OPUS_SET_BITRATE(32000)); enc_size = opus_encode(enc, in, frame_size, tmpBuffer, max_payload_bytes); if (enc_size < 0) {...
2015 Feb 23
1
[PATCH] opus_demo: remove unused but set values
...- int max_frame_size = 960*6; + int max_frame_size = 48000*2; int curr_read=0; int sweep_bps = 0; int random_framesize=0, newsize=0, delayed_celt=0; @@ -336,15 +336,12 @@ int main(int argc, char *argv[]) /* defaults: */ use_vbr = 1; - bandwidth = OPUS_AUTO; max_payload_bytes = MAX_PACKET; complexity = 10; use_inbandfec = 0; forcechannels = OPUS_AUTO; use_dtx = 0; packet_loss_perc = 0; - max_frame_size = 2*48000; - curr_read=0; while( args < argc - 2 ) { /* process command line options */ -- 2.1.4
2016 Oct 17
0
Opus Demo code
...e reading from the wrong point in the file. The problematic code is the following: unsigned char ch[4]; err = fread(ch, 1, 4, fin); if (feof(fin)) break; len[toggle] = char_to_int(ch); if (len[toggle]>max_payload_bytes || len[toggle]<0) { fprintf(stderr, "Invalid payload length: %d\n",len[toggle]); break; } As you can see, it's reading the first four bytes from the file encoded using Opus tools. The first four bytes in the fil...