From patchwork Fri Sep 13 11:53:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 15052 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 058BC4497B9 for ; Fri, 13 Sep 2019 14:53:56 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D24CE6881AB; Fri, 13 Sep 2019 14:53:55 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7B8B9688188 for ; Fri, 13 Sep 2019 14:53:49 +0300 (EEST) Received: by mail-pg1-f171.google.com with SMTP id d10so15141586pgo.5 for ; Fri, 13 Sep 2019 04:53:49 -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:in-reply-to:references; bh=P+KIM8MGz8wfduyBkMUriS5OIL8C8NaC35mYIGCVtz0=; b=kDY71pZsLpJ/YZe5VETHSxfKU6Zvxu0N5DKe0BXeAADM1XAEHUJyrMAUVr3meh9MhH BYdOVU2vZ2iaTcKr/9HSmR8pqfFGtxnCriiDBxbifKbWaeA3u8IkXV8anmftJUWEFr/7 hKgk4KMySLYJQUx8UhHn6ZKH3xsIBv+vTDDOCoPrraiH/lvUNez7ZztLzj5vxi9OJVXV IvxHRg9epiWu/ZoH3xK7SUEZuPwBW8FX8kZ9b08FwErvP3LydJhwOofJMS5WBOVpWdRM uPma4xuXivYR28WgYGmXsgyRTzkLFra6MJM1UzvUnuqzPbGqXaTGE2TviXd9lqgMLcd7 ipCg== 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:in-reply-to :references; bh=P+KIM8MGz8wfduyBkMUriS5OIL8C8NaC35mYIGCVtz0=; b=ITXi0QzTBhAGX/wUdF6Uxgq+winVtGKNgAU+JeJvwqHQHzIFIArdffk4J0KOPNzNJJ 51ZCE0tvTpmRV9QeKy/sUhDj5aPg3mPHAWCgZQTLYPwFEfh/mZH9hmV9sp7fhUNR7p53 +HEAEWXaSaZAueVxinO33jXGv0WWflpTykqd01OUa2XVowI0hDTc8fnvPWON8QULTLTh SuDynk/WoapVfsnC9P2y3KVbeOQJ/LUYAzhjsWgIoKxSER2hvtz7RK7lwirrIlbIW4dM wYUoncYlitGLKTKtljGVDrYvmFmBE6m3X0y6PM70P5DsE2ibdm0FhCEaoIw1u2jIC9HA W6xQ== X-Gm-Message-State: APjAAAXtwV5kV7r+pxR6mIpWlRl48BZ1F6OsEavut71um6/zyd3+Nde7 6QxwMq1Be4g7cd5S3GsfnWUw8kdz X-Google-Smtp-Source: APXvYqwrBq+RkM7hqF68liD70WXZ6x2B28eoz0K+9nL/0oerG7P8VC/xVgfQ0qoYDtBj7tAvbfS+kA== X-Received: by 2002:a63:31d8:: with SMTP id x207mr17568329pgx.428.1568375627913; Fri, 13 Sep 2019 04:53:47 -0700 (PDT) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id f188sm38965799pfa.170.2019.09.13.04.53.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Sep 2019 04:53:47 -0700 (PDT) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Fri, 13 Sep 2019 19:53:36 +0800 Message-Id: <1568375617-19090-3-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1568375617-19090-1-git-send-email-mypopydev@gmail.com> References: <1568375617-19090-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V1 3/4] lavf/hls: remove redundancy seekable setting 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: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao ffio_init_context with NULL seek callback will setting seekable with 0, so remove the redundancy seekable setting. Signed-off-by: Jun Zhao --- libavformat/hls.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index b32940b..bb07dcb 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -1905,7 +1905,6 @@ static int hls_read_header(AVFormatContext *s) } ffio_init_context(&pls->pb, pls->read_buffer, INITIAL_BUFFER_SIZE, 0, pls, read_data, NULL, NULL); - pls->pb.seekable = 0; ret = av_probe_input_buffer(&pls->pb, &in_fmt, pls->segments[0]->url, NULL, 0, 0); if (ret < 0) {