From patchwork Thu Oct 6 23:29:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodger Combs X-Patchwork-Id: 902 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.66 with SMTP id o63csp1144768vsd; Thu, 6 Oct 2016 16:29:30 -0700 (PDT) X-Received: by 10.194.87.34 with SMTP id u2mr18022556wjz.118.1475796570588; Thu, 06 Oct 2016 16:29:30 -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 k7si7455026wjs.211.2016.10.06.16.29.30; Thu, 06 Oct 2016 16:29:30 -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 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 9B2F46898CB; Fri, 7 Oct 2016 02:29:12 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-io0-f195.google.com (mail-io0-f195.google.com [209.85.223.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 74E68689977 for ; Fri, 7 Oct 2016 02:29:06 +0300 (EEST) Received: by mail-io0-f195.google.com with SMTP id i202so1724673ioi.1 for ; Thu, 06 Oct 2016 16:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=algG4ekapLsqiu5G+vRhhwpVYrt4+ZYYojKpLK+em6k=; b=m5IWglkkc97tNNU9pRr4sraAcd9pzFjqtKSPpWUTSOi3yYvvKfp4MbZF6xWYSMqTCp HLc1CSUn3sHLCkUZmzseHjgWq33DreWzBwvbzRu7erGWxSbjNtdGppFj2+d0sHitj1Sg SqWHuXgU7i61ATydo3BGwWI6p2rluxe/ORIvt53Yrg/869lnQ9iE+MNLyIE/0sdYWyCe uWYrBymgFvgf8Rqk5xZV9TjEhHBpknHFQCutTT+wROBEVNhnqNiJUh1JhtFQLJRFhmD9 U8SGILcKBcGeEJRk76eqt16vcAb93YhxsxrjQTcmTiuVoMGCpj8gjxQELE9UPVf/qq9p qnyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=algG4ekapLsqiu5G+vRhhwpVYrt4+ZYYojKpLK+em6k=; b=lGuE7CJc6CSJLpUDr5cJByYAcaePfZ20uk7tBnzxqWkqJwGvq02iTpjcgkCUEoszdW gospnkuE1FM/bK8lp88Sm1GeX1oikGo0t9RJhJWDSJ6KG7tYfkiq547NkTkmmYGqpGiR JyiZ2s7eTW0EZt+X9l7DXwol8JvkeVwamXSt9p5RM+8OxkZV1Ep+k9bP/3ucQIrGw6yX 3lsFIPmzOO9d4RhjBIWH+5AaLQDjudWdEbXKbNmxnwSsp+KXFiTBMGl2lfU04VBV6gpm hGJOlCwz6TYLKhuazcM66vrZPBgJyPrW7nEENK0d3YJZE20aZMYHjyfLs4cuWAnhp1CK yyiA== X-Gm-Message-State: AA6/9RkBBtLpAtBDXkKeWQlqdzUi6ITKbRpX/EN+FZTG76xRh0iMfRQh7d8EAX9PDJXVGg== X-Received: by 10.107.37.13 with SMTP id l13mr5772671iol.59.1475796560640; Thu, 06 Oct 2016 16:29:20 -0700 (PDT) Received: from Rodgers-MacBook-Pro.local.net (c-73-209-137-129.hsd1.il.comcast.net. [73.209.137.129]) by smtp.gmail.com with ESMTPSA id 88sm6563747iol.30.2016.10.06.16.29.19 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 06 Oct 2016 16:29:19 -0700 (PDT) From: Rodger Combs To: ffmpeg-devel@ffmpeg.org Date: Thu, 6 Oct 2016 18:29:17 -0500 Message-Id: <20161006232917.52624-1-rodger.combs@gmail.com> X-Mailer: git-send-email 2.10.0 Subject: [FFmpeg-devel] [PATCH] lavf/segment: decide whether to rename based on list URI 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" This fixes the case of writing segments to local files, but the list over a network protocol. --- libavformat/segment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/segment.c b/libavformat/segment.c index 33a5cf0..55dcaf0 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -709,7 +709,7 @@ static int seg_init(AVFormatContext *s) if ((ret = segment_list_open(s)) < 0) goto fail; } else { - const char *proto = avio_find_protocol_name(s->filename); + const char *proto = avio_find_protocol_name(seg->list); seg->use_rename = proto && !strcmp(proto, "file"); } }