[FFmpeg-cvslog] r23672 - trunk/tools/qt-faststart.c
bcoudurier
subversion
Mon Jun 21 03:05:30 CEST 2010
Author: bcoudurier
Date: Mon Jun 21 03:05:30 2010
New Revision: 23672
Log:
fail if input and output are the same
Modified:
trunk/tools/qt-faststart.c
Modified: trunk/tools/qt-faststart.c
==============================================================================
--- trunk/tools/qt-faststart.c Mon Jun 21 01:03:32 2010 (r23671)
+++ trunk/tools/qt-faststart.c Mon Jun 21 03:05:30 2010 (r23672)
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
+#include <string.h>
#ifdef __MINGW32__
#define fseeko(x,y,z) fseeko64(x,y,z)
@@ -98,6 +99,11 @@ int main(int argc, char *argv[])
return 0;
}
+ if (!strcmp(argv[1], argv[2])) {
+ fprintf(stderr, "input and output files need to be different\n");
+ return 1;
+ }
+
infile = fopen(argv[1], "rb");
if (!infile) {
perror(argv[1]);
More information about the ffmpeg-cvslog
mailing list