shithub: opus-tools

Download patch

ref: 6f88f59204a99d07fa3646f1141ece17b7c2660a
parent: 299575ef6110ab8bd1fa08ce3043a81c87e9d724
author: Ralph Giles <giles@mozilla.com>
date: Tue Oct 30 11:49:33 EDT 2012

Fix opusrtp option handling.

I don't know what I was thinking, but 'i' wasn't the variable
I wanted to be shifting the argument list by.

--- a/src/opusrtp.c
+++ b/src/opusrtp.c
@@ -888,10 +888,8 @@
         return 1;
     }
   }
-  argc -= i;
-  argv += i;
 
-  for (i = 1; i < argc; i++) {
+  for (i = optind; i < argc; i++) {
     rtp_send_file(argv[i]);
   }