termux-packages/packages/transcode/import-import_mplayer.c.patch

18 lines
614 B
Diff
Raw Normal View History

2022-03-24 20:02:40 +01:00
--- a/import/import_mplayer.c
+++ b/import/import_mplayer.c
@@ -37,10 +37,10 @@
-#define VIDEOPIPE_TEMPLATE "/tmp/mplayer2transcode-video.XXXXXX"
-#define AUDIOPIPE_TEMPLATE "/tmp/mplayer2transcode-audio.XXXXXX"
-static char videopipe[40];
-static char audiopipe[40];
+#define VIDEOPIPE_TEMPLATE "@TERMUX_PREFIX@/tmp/mplayer2transcode-video.XXXXXX"
+#define AUDIOPIPE_TEMPLATE "@TERMUX_PREFIX@/tmp/mplayer2transcode-audio.XXXXXX"
+static char videopipe[strlen(VIDEOPIPE_TEMPLATE)+1];
+static char audiopipe[strlen(AUDIOPIPE_TEMPLATE)+1];
static FILE *videopipefd = NULL;
static FILE *audiopipefd = NULL;