shithub: opus

Download patch

ref: 98a8baa4ef9def4358a8678fca7819a344ecee6c
parent: b88a3ad39672ffa8ccf5ea73a0bffa1dd76a93aa
author: Mark Harris <[email protected]>
date: Mon Oct 7 18:25:06 EDT 2013

Make -loss valid for opus_demo -e

In addition to its decoding use, it is the value used for
OPUS_SET_PACKET_LOSS_PERC.

Signed-off-by: Jean-Marc Valin <[email protected]>

--- a/src/opus_demo.c
+++ b/src/opus_demo.c
@@ -425,7 +425,6 @@
             use_dtx = 1;
             args++;
         } else if( strcmp( argv[ args ], "-loss" ) == 0 ) {
-            check_decoder_option(encode_only, "-loss");
             packet_loss_perc = atoi( argv[ args + 1 ] );
             args += 2;
         } else if( strcmp( argv[ args ], "-sweep" ) == 0 ) {