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 <jmvalin@jmvalin.ca>
This commit is contained in:
Mark Harris 2013-10-07 22:25:06 -07:00 committed by Jean-Marc Valin
parent b88a3ad396
commit 98a8baa4ef

View file

@ -425,7 +425,6 @@ int main(int argc, char *argv[])
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 ) {