From patchwork Tue Apr 25 07:43:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Faiz X-Patchwork-Id: 3486 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.3.129 with SMTP id 123csp1790968vsd; Tue, 25 Apr 2017 00:48:47 -0700 (PDT) X-Received: by 10.28.152.18 with SMTP id a18mr954533wme.35.1493106527484; Tue, 25 Apr 2017 00:48:47 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id k78si3462270wmd.66.2017.04.25.00.48.46; Tue, 25 Apr 2017 00:48:47 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 90758689923; Tue, 25 Apr 2017 10:48:42 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2A5A2680A9B for ; Tue, 25 Apr 2017 10:48:36 +0300 (EEST) Received: by mail-pf0-f196.google.com with SMTP id g23so8339543pfj.1 for ; Tue, 25 Apr 2017 00:48:37 -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=02yS3Pd7zef88Xfkexs/DAFxFxssLwlemqsLdX0JD7o=; b=aW+NFH7oDqqtHwV1O+AoIBM91PaaUywXcjDZl5mJeTyHCJFelMf5vbX7LavKIimI5z cF8waYL237kuJfsis7Z/hU5aL3x8tg2dzvnAQz647ucjsUy8bBNiOg3zWVZu4SSMORBM YqC9bxmBODjzpAMcepKLR3W8V+xIZAmu3mFSynaTvO9Jr+IvBZkPUausLkutWe6QvqPw NtzYsiczBBH7NoPTAdQDQp5OYpMdEg2xpLbRcm3bnaNEmWp5WUJa9GE/0gFBAT/xiMKq aLtn8GenpFJX25MZj/99LnaSxRKi7wn5ODQkpg9FgRgqb4p7Vw7d+D0J1Ok+plEiV/E4 smbA== 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=02yS3Pd7zef88Xfkexs/DAFxFxssLwlemqsLdX0JD7o=; b=kfIf0iSDHa6agfGRxuOHzOaY25g0iLUvtW8IALPeciGlglfVwNU4uPIGfZMlJCcjJ3 Bj2elrURnycqhCrVVk2jH9FspFMIXbTPcHhmtm1zh6HwEAe76gnHYn/rRPA86YtglubZ w66CfkUgLzu+dBhKj8L92dWi4FZXxMgpYmeJfPPWJrW1Kt112Yhi3QXK4kZDmqIw+vKd mMpKXFUUsKeLkws3IIGd6HlRuGXsHXpxVanzVFyWShpGA/BVpIjgPtGne4Twib3vgtm7 CAieCe8TgQNdnQiDS9uIFVkYgw1WFwV/Lcy/cOyWm8SQepWh+cwgUjpW6o5xdBiAlp+e H7hQ== X-Gm-Message-State: AN3rC/6zgK8SmCLDkTQ8y9HiGXJi5FLN50Ilzpl3qx31pZgWNEl5v7xk xf28fe22d/voEg== X-Received: by 10.99.38.196 with SMTP id m187mr27030613pgm.195.1493106199870; Tue, 25 Apr 2017 00:43:19 -0700 (PDT) Received: from localhost.localdomain ([114.124.180.206]) by smtp.gmail.com with ESMTPSA id h7sm34600790pfc.99.2017.04.25.00.43.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Apr 2017 00:43:19 -0700 (PDT) From: Muhammad Faiz To: ffmpeg-devel@ffmpeg.org Date: Tue, 25 Apr 2017 14:43:01 +0700 Message-Id: <20170425074301.21142-1-mfcc64@gmail.com> X-Mailer: git-send-email 2.9.3 Subject: [FFmpeg-devel] [PATCH] avfilter/lavfutils: use image2pipe demuxer on ff_load_image 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: Muhammad Faiz MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" allow protocols other than file to be used for example, use data protocol to embed a file in script Signed-off-by: Muhammad Faiz --- libavfilter/lavfutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c index 706badf..35878b3 100644 --- a/libavfilter/lavfutils.c +++ b/libavfilter/lavfutils.c @@ -38,7 +38,7 @@ int ff_load_image(uint8_t *data[4], int linesize[4], av_register_all(); - iformat = av_find_input_format("image2"); + iformat = av_find_input_format("image2pipe"); if ((ret = avformat_open_input(&format_ctx, filename, iformat, NULL)) < 0) { av_log(log_ctx, AV_LOG_ERROR, "Failed to open input file '%s'\n", filename);