]> git.sesse.net Git - ffmpeg/commitdiff
avformat/hls: avformat_find_stream_info when the audio list in the variant
authorSteven Liu <lq@chinaffmpeg.org>
Tue, 4 Jun 2019 07:27:11 +0000 (15:27 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Fri, 14 Jun 2019 02:53:29 +0000 (10:53 +0800)
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/hls.c

index b5df9ae5237516a260c7bae9edb4162968c1e87d..14f1bf8d449683825d5db601bc35ba90e342a7b0 100644 (file)
@@ -1948,7 +1948,7 @@ static int hls_read_header(AVFormatContext *s)
          * but for other streams we can rely on our user calling avformat_find_stream_info()
          * on us if they want to.
          */
-        if (pls->is_id3_timestamped) {
+        if (pls->is_id3_timestamped || (pls->n_renditions > 0 && pls->renditions[0]->type == AVMEDIA_TYPE_AUDIO)) {
             ret = avformat_find_stream_info(pls->ctx, NULL);
             if (ret < 0)
                 goto fail;