aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2019-06-04 15:27:11 +0800
committerSteven Liu <lq@chinaffmpeg.org>2019-06-14 10:53:29 +0800
commit5d0652916f2f514f077de6592407cd2c4bf3655c (patch)
treeab05f0bcc55679ec4819f160ddb2e47c331aadf4 /libavformat
parentaea524e6e325ff27e4cd0d98212fc5b335c1af48 (diff)
downloadffmpeg-5d0652916f2f514f077de6592407cd2c4bf3655c.tar.gz
avformat/hls: avformat_find_stream_info when the audio list in the variant
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index b5df9ae523..14f1bf8d44 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -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;