freebsd-ports/multimedia/mplex/files/patch-main.c
Dmitry Marakasov 9bf00ee878 - Add LICENSE
- Regenerate patches
2017-02-27 12:51:06 +00:00

34 lines
730 B
C

--- main.c.orig 1995-04-05 08:51:53 UTC
+++ main.c
@@ -59,6 +59,7 @@
*************************************************************************/
#include "main.h"
+#include <unistd.h>
/*************************************************************************
Main
@@ -75,6 +76,8 @@
struct timeval tp_global_end;
#endif
+int Interactive=0;
+
int main (argc, argv)
int argc;
@@ -93,6 +96,14 @@ char* argv[];
unsigned int which_streams=0;
double startup_delay=0;
+ int tmp;
+
+ if( getopt( argc, argv, "i" ) == 'i' )
+ Interactive=1;
+
+ optind -= 1;
+ argc -= optind;
+ argv += optind;
intro (argc);
check_files (argc, argv, &audio_file, &video_file, &multi_file,