From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 3F76649A0B for ; Mon, 26 Feb 2024 14:23:41 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3F39F68C7B8; Mon, 26 Feb 2024 16:23:39 +0200 (EET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A65A66881DA for ; Mon, 26 Feb 2024 16:23:31 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708957417; x=1740493417; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/IbG4FECoz6sNC4CZqbUqxDgSmraI6x1mPXqLa2Q9JU=; b=VADkbwefQGVWHI8e//rosv1xgjdHdvC3cKSJPZHulTLf4jKJIGxoCydq kfBAzqN+aCh37ZWUYS8wQ1HwLqGXDRqj6DWyoi5aUrFRHfo1QreAzT3MZ ma6apZdMwBkzzbj8OLA6MUOXPSsEAm2XYxxSO/lZOTy583udqyItMr6pX +B+SFG7DS8Iz87/QaUIxMfDrIlUNWvV7NXhQmFa6ptOua27KyIlKWj632 fAS+D4IXNmU6MWI8UTzR+aWYU4yTpUTaD9HIpjz4WTL/1e2/KSS1baOjA G0QYsdJT7dgJN356gWC/MP0WfZK6nuYGh20JvjXbnaMGphdVHmwnigeUJ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10995"; a="13797948" X-IronPort-AV: E=Sophos;i="6.06,185,1705392000"; d="scan'208";a="13797948" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 06:21:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,185,1705392000"; d="scan'208";a="6818042" Received: from gnr-bkc.igk.intel.com ([10.91.102.233]) by fmviesa008.fm.intel.com with ESMTP; 26 Feb 2024 06:21:14 -0800 From: Hanna Ciebiera To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Feb 2024 15:21:01 +0100 Message-ID: <20240226142101.401835-1-hanna.ciebiera@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avfilter/ff_filter_frame_framed: Fix setting up filter frame X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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: Hanna Ciebiera Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Up to now filter_frame was incorrectly set up to dst->filter_frame in if statement. It was causing conversion failure during the transcoding. Now, when condition in if statement is met filter_frame is set up to default_filter_frame. Signed-off-by: Hanna Ciebiera --- libavfilter/avfilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index ab7782862a..5da17f3160 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -951,7 +951,7 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame) AVFilterPad *dst = link->dstpad; int ret; - if (!(filter_frame = dst->filter_frame)) + if (!(filter_frame == dst->filter_frame)) filter_frame = default_filter_frame; if (dst->flags & AVFILTERPAD_FLAG_NEEDS_WRITABLE) { -- 2.43.0 --------------------------------------------------------------------- Intel Technology Poland sp. z o.o. ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN. Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych. Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".