]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/file.c
lavf/mpegtsenc: add automatic bitstream filtering
[ffmpeg] / libavformat / file.c
index d59aa42b50b1a9c070023070f425b4ce63b29187..a31840838c8d8786630b58035dc52fce1d670f18 100644 (file)
@@ -78,7 +78,7 @@ typedef struct FileContext {
 } FileContext;
 
 static const AVOption file_options[] = {
-    { "truncate", "truncate existing files on write", offsetof(FileContext, trunc), AV_OPT_TYPE_INT, { .i64 = 1 }, 0, 1, AV_OPT_FLAG_ENCODING_PARAM },
+    { "truncate", "truncate existing files on write", offsetof(FileContext, trunc), AV_OPT_TYPE_BOOL, { .i64 = 1 }, 0, 1, AV_OPT_FLAG_ENCODING_PARAM },
     { "blocksize", "set I/O operation maximum block size", offsetof(FileContext, blocksize), AV_OPT_TYPE_INT, { .i64 = INT_MAX }, 1, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM },
     { NULL }
 };