Commit fb45a3fa authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Build fixes

parent f54b69b7
celt @ d539c6b9
Subproject commit ec6588ae149f82a182c73501abaf268e0b9a190b
Subproject commit d539c6b9c59d243f81a47d78b9497ea455bdea00
......@@ -19,9 +19,6 @@ AC_C_INLINE
AC_C_RESTRICT
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
export OPUS_BUILD=true
AC_CONFIG_SUBDIRS([celt])
AC_CONFIG_SUBDIRS([silk])
......
silk @ 111b23f6
Subproject commit a81e6dc2bc337c25156e6e908e45cbf7a5e0f104
Subproject commit 111b23f648a45d3a034050e579a531d0592dc720
......@@ -242,6 +242,7 @@ int main(int argc, char *argv[])
while (!stop)
{
int write_samples;
int lost;
err = fread(in, sizeof(short), frame_size*channels, fin);
tot_read += err;
if (err < frame_size*channels)
......@@ -257,7 +258,8 @@ int main(int argc, char *argv[])
return 1;
}
opus_decode(dec, rand()%100<packet_loss_perc ? NULL : data, len, out, frame_size);
lost = rand()%100<packet_loss_perc;
opus_decode(dec, lost ? NULL : data, len, out, frame_size);
count++;
tot_written += (frame_size-skip)*channels;
write_samples = frame_size;
......@@ -271,7 +273,7 @@ int main(int argc, char *argv[])
#if OPUS_TEST_RANGE_CODER_STATE
/* compare final range encoder rng values of encoder and decoder */
if( opus_decoder_get_final_range( dec ) != opus_encoder_get_final_range( enc ) ) {
if( !lost && opus_decoder_get_final_range( dec ) != opus_encoder_get_final_range( enc ) ) {
fprintf (stderr, "Error: Range coder state mismatch between encoder and decoder.\n");
return 0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment