Quoting Martin Storsjö (2016-03-18 13:01:37)
> Using this requires setting the rw_timeout option to make it
> terminate, alternatively using the interrupt callback (if used via
> the API).
> ---
>  libavformat/file.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/libavformat/file.c b/libavformat/file.c
> index 4f581cf..8683c1b 100644
> --- a/libavformat/file.c
> +++ b/libavformat/file.c
> @@ -42,10 +42,12 @@ typedef struct FileContext {
>      const AVClass *class;
>      int fd;
>      int trunc;
> +    int follow;
>  } 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 },
> +    { "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 },

Hmm, that's a rather creative use of the word "follow". I must say it
wouldn't be clear to me what this does without reading the code. Perhaps
you could add more detail to demuxers.texi?

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to