From patchwork Mon Mar 25 08:39:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 12433 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 16D634484AF for ; Mon, 25 Mar 2019 10:39:20 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EA015689A11; Mon, 25 Mar 2019 10:39:19 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 74CE5680D41 for ; Mon, 25 Mar 2019 10:39:13 +0200 (EET) Received: by mail-pg1-f193.google.com with SMTP id a22so5986299pgg.13 for ; Mon, 25 Mar 2019 01:39:13 -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=MMMYIBPHtgjBgo5fP06o+i1jJYgekL2PTut9zls1i5c=; b=JAZZ4YM3ElKx9OICm7EHiRw/80aY4YK0G3my4Xy3wPzAloQ4gqx9ItP7cISLq3qZoF AW/767mWQ098OOH35y6ci81JPVhBqIyTiRUqs/pZUEJjKc5/SrDJsjnedda3BLzF+cTP cw0yaYrcNqa/+F2+bUUKhc/fbICF5pXLZKb8flDnAH5smnUY5B4/jnWD0NBAAnXdfVGG xmobrqHMb18XAVSRxJoJ3X8xUiNU5ga3qYfho5ipSsxoHaNNsWyrYPQbCa5G2M8ar9MD u8hMlZvMmmgJGIFJ7hmyM/kxzmz7yi4Tos2scmHf5FcDN4yg2IbcBcXk+NM9MhmwZn2a 3dsQ== 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=MMMYIBPHtgjBgo5fP06o+i1jJYgekL2PTut9zls1i5c=; b=IVxpP9S8F1QU+3cHK6rDg0QcKK3vqhMuWz7NO0qLMAk1I5EKabyByO1vKD4mXIxS4q G1OocwidxFdlvN06kNpuGpVYu/+qrZgz6YBsdklufKoESQdf9/yzqLYU+ttP3E9f/1i2 Zty7yLF59K8hWQ4epL9NTBtjWdpPrkfLUWm3Npt5CEZ3re8P127TwxFf5lRcM+/K6OO8 eEs9bL227xtCqUtNJIV/79JaxMUjPCn8Nt67VC+nIHNQ6q2QmzF7bTuhv98s+iEbGMOa dTtjNfU0w7EL9ncfnw75ng1yt7c8TO0Hzis7fUtmx1ksqCFwohleYSGGE1QBKH4IKUi2 69FA== X-Gm-Message-State: APjAAAVPSqCtJbh1JTJgeucys/A4NZOKckWi0yzZpEhQOjG65RbwbXMu 8kCHSCCd9VJpQEERy4OGS3JRjfcf X-Google-Smtp-Source: APXvYqzRZDYBAqquej8vMcFHJQhjKKQ/rInciiN7zsX9uyM4kwyoR/RnvAjPzzHnj9nIVzcxfPpjtw== X-Received: by 2002:a65:614a:: with SMTP id o10mr22439871pgv.51.1553503151547; Mon, 25 Mar 2019 01:39:11 -0700 (PDT) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id a13sm16778441pgw.91.2019.03.25.01.39.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2019 01:39:10 -0700 (PDT) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Mon, 25 Mar 2019 16:39:03 +0800 Message-Id: <1553503145-27653-1-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 Subject: [FFmpeg-devel] [PATCH V1 1/3] lavf/utils: Remove redundancy AVFMT_FLAG_CUSTOM_IO 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 After commit ba631b79, we don't need to re-setting AVFMT_FLAG_CUSTOM_IO in init_input(). Signed-off-by: Jun Zhao --- libavformat/utils.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 9b3f0d2..fe67c8f 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -421,7 +421,6 @@ static int init_input(AVFormatContext *s, const char *filename, int score = AVPROBE_SCORE_RETRY; if (s->pb) { - s->flags |= AVFMT_FLAG_CUSTOM_IO; if (!s->iformat) return av_probe_input_buffer2(s->pb, &s->iformat, filename, s, 0, s->format_probesize);