From patchwork Tue Jun 4 07:28:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 13403 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id D0C1544935C for ; Tue, 4 Jun 2019 10:31:52 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AFF86689F05; Tue, 4 Jun 2019 10:31:52 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbg65.qq.com (smtpbg65.qq.com [103.7.28.233]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 80C5F68031D for ; Tue, 4 Jun 2019 10:31:45 +0300 (EEST) X-QQ-mid: bizesmtp28t1559633304tnl5veno Received: from localhost (unknown [106.120.217.162]) by esmtp10.qq.com (ESMTP) with id ; Tue, 04 Jun 2019 15:28:23 +0800 (CST) X-QQ-SSF: 01100000002000K0ZPF0000A0000000 X-QQ-FEAT: mUsuWhBd5bbRmiGLLJlna3n4Ad4dfdsCJ7lcAWeTxQ5Rop4IUpVT6ZtHlup4z Xr9K4fwwrjXL27M51jz8UxHoCXvjzLzhf8T1S7IQhCgHusgwagl9eklIG8LymagTJls4vrZ xrzm9Da+LZmMEUV01Rr5Yzxq8om49d9agH8V1r8CdXHeL6u9rfEPCSomsYMLYXNk6ZRQSdM AU1Cw5liqUSBbqXhV8Qh6NJgxdNTt1JvLOfM71YlIUN44Ucr45mwc6SlQzanW2yMKt8K7/w aYtKh+HdeLOkF9/OkSwq4ee5NfD6Zqcvc+bBu4w5X3tfLOpuOam6q3EIKFeVPJBEgyRw== X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Tue, 4 Jun 2019 15:28:21 +0800 Message-Id: <20190604072821.38751-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.17.2 (Apple Git-113) X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign2 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH] avformat/hls: avformat_find_stream_info when the audio list in the variant X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Steven Liu MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Steven Liu --- libavformat/hls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 19ea88e706..7b29b3f5d1 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -1942,7 +1942,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;