1
0
mirror of http://www.pogo.org.uk/~mark/trx.git synced 2024-11-23 19:05:06 +01:00

Use prediction

This commit is contained in:
Mark Hills 2009-09-11 17:19:47 +01:00
parent d2be2e03eb
commit 844fbf03a8

5
tx.c
View File

@ -190,6 +190,11 @@ int main(int argc, char *argv[])
fputs("celt_encoder_create failed\n", stderr);
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;
fprintf(stderr, "bytes_per_frame = %d\n", bytes_per_frame);