[FFmpeg-devel] avformat/hlsenc: Minor fix for persistent http connection of init fmp4

Submitted by kjeyapal@akamai.com on Dec. 15, 2017, 9:27 a.m.

Details

Message ID 1513330060-20613-1-git-send-email-kjeyapal@akamai.com
State New
Headers show

Commit Message

kjeyapal@akamai.com Dec. 15, 2017, 9:27 a.m.
From: Karthick Jeyapal <kjeyapal@akamai.com>

---
 libavformat/hlsenc.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Steven Liu Dec. 15, 2017, 1:14 p.m.
2017-12-15 17:27 GMT+08:00 Karthick J <kjeyapal@akamai.com>:
> From: Karthick Jeyapal <kjeyapal@akamai.com>
>
> ---
>  libavformat/hlsenc.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
> index fdf614b..0e2f412 100644
> --- a/libavformat/hlsenc.c
> +++ b/libavformat/hlsenc.c
> @@ -1787,7 +1787,6 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
>                  vs->init_range_length = range_length;
>                  avio_open_dyn_buf(&oc->pb);
>                  vs->packets_written = 0;
> -                ff_format_io_close(s, &vs->out);
Don't worry, i'm fixing tickets and coding something, maybe this patch
will not fix this time.


Thanks
>                  hlsenc_io_close(s, &vs->out, vs->base_output_dirname);
>              } else {
>                  hlsenc_io_close(s, &oc->pb, oc->filename);
> --
> 1.9.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Patch hide | download patch | download mbox

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index fdf614b..0e2f412 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1787,7 +1787,6 @@  static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
                 vs->init_range_length = range_length;
                 avio_open_dyn_buf(&oc->pb);
                 vs->packets_written = 0;
-                ff_format_io_close(s, &vs->out);
                 hlsenc_io_close(s, &vs->out, vs->base_output_dirname);
             } else {
                 hlsenc_io_close(s, &oc->pb, oc->filename);