[FFmpeg-cvslog] ismindex: Avoid writing ismf files if no base name has been specified

Martin Storsjö git at videolan.org
Mon Sep 8 00:51:56 CEST 2014


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Fri Sep  5 22:50:24 2014 +0300| [fcf597625c7a991ca389f3a9b8ff4f5e383301c0] | committer: Martin Storsjö

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 at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fcf597625c7a991ca389f3a9b8ff4f5e383301c0
---

 tools/ismindex.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/ismindex.c b/tools/ismindex.c
index bc98226..aa862f8 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;



More information about the ffmpeg-cvslog mailing list