X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Ffile.c;h=a31840838c8d8786630b58035dc52fce1d670f18;hb=1b5bd4051d1e394f0429cbf6cf6c137f55857478;hp=d59aa42b50b1a9c070023070f425b4ce63b29187;hpb=81b73f1f979557a6b94d57219e215a4479b3307b;p=ffmpeg diff --git a/libavformat/file.c b/libavformat/file.c index d59aa42b50b..a31840838c8 100644 --- a/libavformat/file.c +++ b/libavformat/file.c @@ -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 } };