From patchwork Mon Mar 16 10:53:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Tomasiak X-Patchwork-Id: 18245 X-Patchwork-Delegate: andriy.gelman@gmail.com 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 D559E44A4C4 for ; Mon, 16 Mar 2020 12:59:57 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B652F68B54B; Mon, 16 Mar 2020 12:59:57 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ed1-f65.google.com (mail-ed1-f65.google.com [209.85.208.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 24F9168B545 for ; Mon, 16 Mar 2020 12:59:51 +0200 (EET) Received: by mail-ed1-f65.google.com with SMTP id ca19so21446219edb.13 for ; Mon, 16 Mar 2020 03:59:51 -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=bXA/7dzSS85Ypm3fWFtm9PyF5CveQFzXIEfyVwgGx9K8Hm2V0r3GcL06+Nwiz9X0uM CylNJmOau3RpKneZMb6fh9jpUCDLZ5pHr9nfyIWegaBXC6mxC+Mqi4xvlv7HnHI+FyPp mMZEBEXwkImdl9Zu7ljoOxx5JByxgAMcjKrgMkh33TalDAX9eOl00eKLzCx82dhlyM6u 7YzxCiI97hnO0wS5UK1NqKhw6JL/NBp6IO890qE4+XOC9xXZKOT1zRHTPfhTDx/blepG JlmsGCoz6pyuE3rj+6MGn65QHX7AUWv0Hfd/RB0BVp6ph484zb01aglQUkV0C56tj/6J ClxA== 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=n/pCt4jKcHNYpt3qUy/00lByinCYNVnP3ZBbGY3MOn3pkmx3KE0+V3yAWuQeHC73sK +Smd8gcyXnKJyt1MNGA3ZEnCABmMCZ28CEOPAlzKq7diQHC7kovVcBm49oAYR3ByvUhV 6Oz89K5IAnTOd7qO1y8nTQpJRakBEbgmuPPhEEmLRCRPJMHAnqrJCn7pwLE8g3HZgNJs NzAFXVyTLNd8uMHiiBlWNVBnD5lUpdF8X5iS4KF3FnoFwW4ul6GA4nL3wrJYzAIMC9lV 8U7SPo6WOB+nFUIekIgpbEJKEH+wRNHztC8UnIasy0n+PXF6K3zFa+CQv9k+A7eDCRcN KRTw== X-Gm-Message-State: ANhLgQ2qvhEOf6Fwh6qu6mA10NP8522cgJ6pYEM0aAHJEKwmOm4QDzTh izcjoH38kOU8hl3gNHFBxes1CN/p X-Google-Smtp-Source: ADFU+vvI1V3l1ewTM6dzBqsVYH8Pav7eBOeU6n+JAzG1M6Mp4orqn6cZJi0FFENp3BYnqOXx8gCYrw== X-Received: by 2002:a2e:8ec7:: with SMTP id e7mr15235338ljl.36.1584356049070; Mon, 16 Mar 2020 03:54:09 -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 q4sm32573196ljm.51.2020.03.16.03.54.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2020 03:54:08 -0700 (PDT) From: Jacek Tomasiak To: ffmpeg-devel@ffmpeg.org Date: Mon, 16 Mar 2020 11:53:36 +0100 Message-Id: <20200316105336.16665-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