diff mbox

[FFmpeg-devel] lavf/hls: Remove the dead code in parse_playlist()

Message ID c6c5ab0b-8a41-0d06-a2a9-a663347e4b1e@gmail.com
State Accepted
Commit 51e3010575ca55ee64ffe3c48087d263e9c1e65f
Headers show

Commit Message

Jun Zhao April 1, 2018, 11:09 p.m. UTC
From 96de206d191264d2a5aacff5f877caad1d861439 Mon Sep 17 00:00:00 2001
From: Jun Zhao <mypopydev@gmail.com>
Date: Sun, 1 Apr 2018 11:17:45 +0800
Subject: [PATCH] lavf/hls: Remove the dead code in  parse_playlist()

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
---
 libavformat/hls.c | 7 -------
 1 file changed, 7 deletions(-)
diff mbox

Patch

diff --git a/libavformat/hls.c b/libavformat/hls.c
index c578bf86e3..ae0545a086 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -743,7 +743,6 @@  static int parse_playlist(HLSContext *c, const char *url,
     }
 
     if (!in) {
-#if 1
         AVDictionary *opts = NULL;
         /* Some HLS servers don't like being sent the range header */
         av_dict_set(&opts, "seekable", "0", 0);
@@ -766,12 +765,6 @@  static int parse_playlist(HLSContext *c, const char *url,
             c->playlist_pb = in;
         else
             close_in = 1;
-#else
-        ret = open_in(c, &in, url);
-        if (ret < 0)
-            return ret;
-        close_in = 1;
-#endif
     }
 
     if (av_opt_get(in, "location", AV_OPT_SEARCH_CHILDREN, &new_url) >= 0)