Commit 15f9e622 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix compilation error in msopus.c

parent 139f2fb7
......@@ -338,7 +338,7 @@ static void player_process(MSFilter *f){
mblk_set_timestamp_info(om, f->ticker->time);
mblk_set_marker_info(om,markbit);
ms_queue_put(f->outputs[0], om);
ms_message("Outputting RTP packet of size %i, markbit=%i", bytes,(int)markbit);
ms_message("Outputting RTP packet of size %i, seq=%u markbit=%i", bytes, pcap_seq, (int)markbit);
}
d->pcap_seq = pcap_seq;
d->pcap_hdr = NULL;
......
......@@ -115,7 +115,11 @@ static void ms_opus_enc_preprocess(MSFilter *f) {
/* set complexity to 0 for single processor arm devices */
#ifdef __arm__
opus_encoder_ctl(d->state, (ms_factory_get_cpu_count(f->factory)==1) ? OPUS_SET_COMPLEXITY(0) : OPUS_SET_COMPLEXITY(5));
if (ms_factory_get_cpu_count(f->factory)==1){
opus_encoder_ctl(d->state, OPUS_SET_COMPLEXITY(0));
}else{
opus_encoder_ctl(d->state, OPUS_SET_COMPLEXITY(5));
}
#endif
error = opus_encoder_ctl(d->state, OPUS_SET_PACKET_LOSS_PERC(10));
if (error != OPUS_OK) {
......
Markdown is supported
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