{"truncate","truncate existing files on write",offsetof(FileContext,trunc),AV_OPT_TYPE_BOOL,{.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},
{"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},
{"follow","Follow a file as it is being written",offsetof(FileContext,follow),AV_OPT_TYPE_INT,{.i64=0},0,1,AV_OPT_FLAG_DECODING_PARAM},
{"follow","Follow a file as it is being written",offsetof(FileContext,follow),AV_OPT_TYPE_INT,{.i64=0},0,1,AV_OPT_FLAG_DECODING_PARAM},
{"seekable","Sets if the file is seekable",offsetof(FileContext,seekable),AV_OPT_TYPE_INT,{.i64=-1},-1,0,AV_OPT_FLAG_DECODING_PARAM|AV_OPT_FLAG_ENCODING_PARAM},
{NULL}
{NULL}
};
};
...
@@ -238,6 +240,9 @@ static int file_open(URLContext *h, const char *filename, int flags)
...
@@ -238,6 +240,9 @@ static int file_open(URLContext *h, const char *filename, int flags)