From patchwork Mon Mar 16 10:58:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Tomasiak X-Patchwork-Id: 18246 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 27DBA4488EB for ; Mon, 16 Mar 2020 13:29:11 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0826468B55F; Mon, 16 Mar 2020 13:29:11 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C89B068B54D for ; Mon, 16 Mar 2020 13:29:04 +0200 (EET) Received: by mail-lf1-f67.google.com with SMTP id b186so13584921lfg.11 for ; Mon, 16 Mar 2020 04:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=nVZPuVcnbJXjlgiYckga3W0Gvx+1keFoPWYWVD8/TBQ=; b=qGP/FfkBDzEKDCWqWWdfkUaMjXkrRe1x0DjR8jMPDyY4Deus+ClEfhLHTFVW/XrZP0 sszSTkWS4c9QsJeXCtP9XAimniE9zGkEWr/E6jxeQalGV5mERu6crgCu4jJlTy/RIQ4f DpWZujNUdxLktmw2eH+W5uNRcuQjKEf94LUTkyU8NlF0y1bhAljGTzUWoagxKWmxQ9V8 AOsjCNQL//UZEdBJCDjnlgck/EogJ9Q19D4fr8G2xjE2eLuYTb7d5fadD82qmZnAg9H3 tj8CTd78sCJES3SGGKmu03JkxHE+yc4tWrcHa6MwBQhNs5ZFEX8Mgfz0e+xV5cp9aSXx WcXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nVZPuVcnbJXjlgiYckga3W0Gvx+1keFoPWYWVD8/TBQ=; b=KG3ruhoJRu23u2WJOmEfM+lDMKcPfOLiHMj9sG5uGnIcWS07cEkecXARpai/m+r351 uEkPa/NvI2+KZdWGNqGRbQInwZJzhDeVbWsqir4nUBXAMDn8EuTDBbhnz5qrAFUaDwP4 Dny6xWO/6NC4d+/JPMLO6vZSBbD/pzUDG4Xq6SU8fVHsisTQMSP6E/KvMo615lW40QkH IbB1cMyXsthYwUrfnoBdJ/DGNEaG1k/nO/rD0oSu+ktFYG4bjX7FanzGR4QwKuAGxz/I W/GL3l6JXWN+KDhu0l0g7WTvDHj7/V8Wp64iPrZMJr8aoKYP4DaUgN8IThi7/JiB01PA zhZA== X-Gm-Message-State: ANhLgQ2mozIztPioY4JFi1FCxSaJCf4GiggTC07tiKVGRh7byl1pCJ3x KYXXDEEdcOxEVOtr8zFUcp+aw/Gs X-Google-Smtp-Source: ADFU+vv+UDB++cFioCh3KVTWPDzZZw+m56w1eOwy0NiV+2x1EEU2TbLN5sHnT8MPJRZMBJ4D3bKuAw== X-Received: by 2002:a19:c611:: with SMTP id w17mr4511142lff.179.1584356286585; Mon, 16 Mar 2020 03:58:06 -0700 (PDT) Received: from linux-ti96.home.skz-net.net (ipv4-80-68-235-246.net.internetunion.pl. [80.68.235.246]) by smtp.gmail.com with ESMTPSA id n27sm5331599lfh.44.2020.03.16.03.58.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2020 03:58:05 -0700 (PDT) From: Jacek Tomasiak To: ffmpeg-devel@ffmpeg.org Date: Mon, 16 Mar 2020 11:58:02 +0100 Message-Id: <20200316105802.16824-1-jacek.tomasiak@gmail.com> X-Mailer: git-send-email 2.16.4 Subject: [FFmpeg-devel] [PATCH] avformat/hls: Use probing parameters for actual stream 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: Jacek Tomasiak MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" HLS input streams ignored CLI parameters which control the probing process. Each stream was initialized with fresh context and used the default values for probing. --- libavformat/hls.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libavformat/hls.c b/libavformat/hls.c index 1f58e745a7..5954b1d2d9 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -1919,6 +1919,14 @@ static int hls_read_header(AVFormatContext *s) pls->needed = 1; pls->parent = s; + /* Pass top-level probing parameters to actual stream */ + pls->ctx->probesize = s->probesize; + pls->ctx->format_probesize = s->format_probesize; + pls->ctx->max_analyze_duration = s->max_analyze_duration; + pls->ctx->fps_probe_size = s->fps_probe_size; + pls->ctx->max_ts_probe = s->max_ts_probe; + pls->ctx->max_probe_packets = s->max_probe_packets; + /* * If this is a live stream and this playlist looks like it is one segment * behind, try to sync it up so that every substream starts at the same