shithub: opus-tools

Download patch

ref: c70bafc8090be92a9c144bd3158b3dc91dd069cb
parent: 83586a7838bcc75bdf0e07e403e58f7ee51b4fcd
author: Ralph Giles <giles@mozilla.com>
date: Tue Oct 2 11:23:49 EDT 2012

Return after executing --sniff.

Otherwise we fall through to the default sending behaviour.

--- a/src/opusrtp.c
+++ b/src/opusrtp.c
@@ -789,8 +789,10 @@
         if (!strcmp(long_options[i].name, "sniff")) {
 #ifdef HAVE_PCAP
           sniff("lo");
+          return 0;
 #else
           fprintf(stderr, "pcap support disabled, sorry.\n");
+          return 1;
 #endif
         } else {
           fprintf(stderr, "Unknown option - try %s --help.\n", argv[0]);