Control: tags -1 + patch

[Peter Belkner]
> the source code of bs1770gain is updated to version 0.9.9:
> "http://pbelkner.de/projects/files/bs1770gain/bs1770gain/0.9.9/";.
> 
> Unfortunately there seems no binary glibc 2.43 hence the fix is untested. It
> consists in changing in "ff_csv2avdict.c" the declaration of three variables
> from "char *" to "const char *".

I have now tested this patch, which solve the problem.

--- bs1770gain-salsa.orig/libff/ff_csv2avdict.c
+++ bs1770gain-salsa/libff/ff_csv2avdict.c
@@ -535,9 +535,9 @@ static const char *priv_name(const char
   const char *p=s;
 
   for (;;) {
-    char *p1=strstr(p,"\\");
-    char *p2=strstr(p,"/");
-    char *p3=p1&&p2?(p2<p1?p1:p2):p1?p1:p2?p2:NULL;
+    const char *p1=strstr(p,"\\");
+    const char *p2=strstr(p,"/");
+    const char *p3=p1&&p2?(p2<p1?p1:p2):p1?p1:p2?p2:NULL;
 
     if (NULL==p3)
       break;

I ran into issues with version 0.9.9 and newer ffmpeg, which need to be
solved independently of this const problem.

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to