summaryrefslogtreecommitdiff
path: root/tools/ismindex.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-09-05 22:50:24 +0300
committerMartin Storsjö <martin@martin.st>2014-09-07 23:20:30 +0300
commitfcf597625c7a991ca389f3a9b8ff4f5e383301c0 (patch)
treebdbc0d978d1431455fa626d9dfe1430732692367 /tools/ismindex.c
parent803e82276b3716bf6012ec69e8854dae14a4fd2b (diff)
downloadffmpeg-fcf597625c7a991ca389f3a9b8ff4f5e383301c0.tar.gz
ismindex: Avoid writing ismf files if no base name has been specified
Previously, this could create files named "(null).ismf", if the -ismf parameter is specified (before an input file name), but without specifying any base name. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'tools/ismindex.c')
-rw-r--r--tools/ismindex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/ismindex.c b/tools/ismindex.c
index bc98226875..aa862f8b37 100644
--- a/tools/ismindex.c
+++ b/tools/ismindex.c
@@ -679,6 +679,8 @@ int main(int argc, char **argv)
} else if (argv[i][0] == '-') {
return usage(argv[0], 1);
} else {
+ if (!basename)
+ ismf = 0;
if (handle_file(&tracks, argv[i], split, ismf,
basename, output_prefix))
return 1;