diff mbox

[FFmpeg-devel,2/3] hls: pass AVFormatContext flags to sub demuxer

Message ID 20170309144519.14212-2-nfxjfg@googlemail.com
State Accepted
Commit 597c6b789efb8d3eec200eb4f38a3d8da591deec
Headers show

Commit Message

wm4 March 9, 2017, 2:45 p.m. UTC
---
 libavformat/hls.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Steven Liu March 9, 2017, 2:48 p.m. UTC | #1
2017-03-09 22:45 GMT+08:00 wm4 <nfxjfg@googlemail.com>:

> ---
>  libavformat/hls.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/hls.c b/libavformat/hls.c
> index 3ae3c7cc5c..c65a9f9e87 100644
> --- a/libavformat/hls.c
> +++ b/libavformat/hls.c
> @@ -1761,6 +1761,7 @@ static int hls_read_header(AVFormatContext *s)
>          }
>          pls->ctx->pb       = &pls->pb;
>          pls->ctx->io_open  = nested_io_open;
> +        pls->ctx->flags   |= s->flags;
>
>          if ((ret = ff_copy_whiteblacklists(pls->ctx, s)) < 0)
>              goto fail;
> --
> 2.11.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


LGTM
diff mbox

Patch

diff --git a/libavformat/hls.c b/libavformat/hls.c
index 3ae3c7cc5c..c65a9f9e87 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1761,6 +1761,7 @@  static int hls_read_header(AVFormatContext *s)
         }
         pls->ctx->pb       = &pls->pb;
         pls->ctx->io_open  = nested_io_open;
+        pls->ctx->flags   |= s->flags;
 
         if ((ret = ff_copy_whiteblacklists(pls->ctx, s)) < 0)
             goto fail;