shithub: rtmp

Download patch

ref: a0e0f7a6367f88fc26c66cf9442cc2462cb97e6d
parent: a061a2c2564fdbc092f384f2a29d0dcc1ed8a6fd
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Jul 29 06:23:37 EDT 2021

rtmpdial: remove unused args

--- a/main.c
+++ b/main.c
@@ -55,7 +55,7 @@
 	if(strcmp(ivf.type, "AVC1") != 0)
 		sysfatal("not H.264");
 	srand(time(nil));
-	if((r = rtmpdial(argv[0], ivf.w, ivf.h, a != nil)) == nil)
+	if((r = rtmpdial(argv[0])) == nil)
 		sysfatal("%r");
 
 	threadexitsall(nil);
--- a/rtmp.c
+++ b/rtmp.c
@@ -611,7 +611,7 @@
 }
 
 RTMP *
-rtmpdial(char *url, int w, int h, int withaudio)
+rtmpdial(char *url)
 {
 	char *s, *e, *path, *app;
 	int f, port, ctl;
--- a/rtmp.h
+++ b/rtmp.h
@@ -2,5 +2,5 @@
 
 #pragma incomplete RTMP
 
-RTMP *rtmpdial(char *url, int w, int h, int withaudio);
+RTMP *rtmpdial(char *url);
 void rtmpclose(RTMP *r);