termux-packages/packages/transcode/import-import_mplayer.c.patch
2022-03-26 06:12:26 +09:00

18 lines
614 B
Diff

--- 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;