From patchwork Fri Sep 23 05:04:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 690 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.66 with SMTP id o63csp384714vsd; Thu, 22 Sep 2016 22:04:57 -0700 (PDT) X-Received: by 10.28.232.141 with SMTP id f13mr732155wmi.69.1474607097844; Thu, 22 Sep 2016 22:04:57 -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 df6si5761469wjc.260.2016.09.22.22.04.55; Thu, 22 Sep 2016 22:04:57 -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 4408768998D; Fri, 23 Sep 2016 08:04:37 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-oi0-f65.google.com (mail-oi0-f65.google.com [209.85.218.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4D17E6897D6 for ; Fri, 23 Sep 2016 08:04:30 +0300 (EEST) Received: by mail-oi0-f65.google.com with SMTP id i193so7799171oib.3 for ; Thu, 22 Sep 2016 22:04:46 -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=Tu2kFey/z5ROcT+49cLf4wTAB6GyOOie958l4WcmK94=; b=pW1yk/fQOA51SgqPFld+zPNRaoK71tA6MGXSo+DNW2pMJ4JdcOGVc3h1yle9OO6arp 8N1lZGI1iWJ0r1yqZmtFXwoxWq1185k6ykEtqtMSfZU0aZODSGLQcrGLJgVw9ETw3Uql y94uZU4X8mqEcpjI/QS/ElH6r1owJWLiVBLQnKL69HI6Pc+y6vvuS3zFRwGX54iOQH+Y 2BipKuKy00ReNObwvEBimRiwqZn/xAi+Wngf0OiMZ1HOu5SRktk88JEd3u/oqAB+ucRU evCVSVnvsEZGao4bEfru+w49cBtwdVB5yamizxqD+2iGYbO8OHZPjyEB5d+Su0dVOaNu HUWA== 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=Tu2kFey/z5ROcT+49cLf4wTAB6GyOOie958l4WcmK94=; b=ff63g8d8WvXwKLt+n77ZNtw0O7hzM1QfJ2VCDvLGGRl0CWHGfWV2Xy7dPqw2wGBZQE uexRn7Ceei1zZpujC/hlXuK0s6HeRdGZrJzujSW54hne/y5zAGFqJUamoE8votnkhwJQ zpU1ioODlHgd1FSYiUnylxYF6qBJIKzRVag/HdolvpuFXvi1IDhjMdcjxHOUAIt/EaRI yTKqt1B4bWeHQhqJuGbBToYG2yp/WE0WANDSJg8PXy561dgN71QMrrbxvufUaW2dLE/v hwIcTTx9p4j+1dCAK3eCulRATfiSghMFrFm7luI0LmSTaTZI73tjGwWsZPixKjn85jIR ORFQ== X-Gm-Message-State: AE9vXwPcu3mky0h57dBfreDZhsaFiVYuBt5V5ZbL3WwaCWP213ecZTpTZGVCWB7fc6xJjw== X-Received: by 10.202.93.193 with SMTP id r184mr7908949oib.136.1474607084833; Thu, 22 Sep 2016 22:04:44 -0700 (PDT) Received: from localhost.localdomain ([181.22.44.186]) by smtp.gmail.com with ESMTPSA id r33sm1648227ota.41.2016.09.22.22.04.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Sep 2016 22:04:44 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Fri, 23 Sep 2016 02:04:08 -0300 Message-Id: <20160923050408.3856-1-jamrial@gmail.com> X-Mailer: git-send-email 2.9.1 Subject: [FFmpeg-devel] [PATCH] avformat/mux: remove unnecessary autobsf hack 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" autobsf has been ported to the new bsf API. Signed-off-by: James Almer --- libavformat/mux.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libavformat/mux.c b/libavformat/mux.c index bbfc0fc..79fbbfc 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -309,12 +309,6 @@ FF_DISABLE_DEPRECATION_WARNINGS FF_ENABLE_DEPRECATION_WARNINGS #endif - /* update internal context from codecpar, old bsf api needs this - * FIXME: remove when autobsf uses new bsf API */ - ret = avcodec_parameters_to_context(st->internal->avctx, st->codecpar); - if (ret < 0) - goto fail; - if (!st->time_base.num) { /* fall back on the default timebase values */ if (par->codec_type == AVMEDIA_TYPE_AUDIO && par->sample_rate)