mirror of
http://www.pogo.org.uk/~mark/trx.git
synced 2024-11-24 03:15:05 +01:00
Use prediction
This commit is contained in:
parent
d2be2e03eb
commit
844fbf03a8
5
tx.c
5
tx.c
@ -190,6 +190,11 @@ int main(int argc, char *argv[])
|
|||||||
fputs("celt_encoder_create failed\n", stderr);
|
fputs("celt_encoder_create failed\n", stderr);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
if (celt_encoder_ctl(encoder, CELT_SET_PREDICTION(2)) != CELT_OK) {
|
||||||
|
fputs("CELT_SET_PREDICTION failed\n", stderr);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
bytes_per_frame = kbps * 1024 * frame / rate / 8;
|
bytes_per_frame = kbps * 1024 * frame / rate / 8;
|
||||||
fprintf(stderr, "bytes_per_frame = %d\n", bytes_per_frame);
|
fprintf(stderr, "bytes_per_frame = %d\n", bytes_per_frame);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user