On Wed, Sep 17, 2014 at 04:12:04PM +0200, Joakim Roubert wrote:
> --- a/doc/muxers.texi
> +++ b/doc/muxers.texi
> @@ -116,6 +116,8 @@ Set the number after which index wraps.
>  Start the sequence from @var{number}.
>  @item -hls_base_url @var{baseurl}
>  Append @var{baseurl} to every entry in the playlist.
> +@item -hls_allow_cache @var{allowcache}
> +Set whether the client MAY (YES) or MUST NOT (NO) cache media segments
>  Useful to generate playlists with absolute paths.
>  @end table


> --- a/libavformat/hlsenc.c
> +++ b/libavformat/hlsenc.c
> @@ -145,6 +146,10 @@ static int hls_window(AVFormatContext *s, int last)
>  
>      avio_printf(hls->pb, "#EXT-X-VERSION:3\n");
> +    if (0 == strcmp(hls->allowcache, "YES") ||
> +        0 == strcmp(hls->allowcache, "NO")) {

We usually write "foo == 0".

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to