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 25713429CB for ; Sun, 9 Apr 2023 12:26:19 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 774D668B963; Sun, 9 Apr 2023 15:26:15 +0300 (EEST) Received: from out-2.mta1.migadu.com (out-2.mta1.migadu.com [95.215.58.2]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 042FF688068 for ; Sun, 9 Apr 2023 15:26:08 +0300 (EEST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zanevaniperen.com; s=key1; t=1681043166; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=8bl9KwAneQc4Ce/eyIDDMjjpjgVMV3lvXtHD9G3VFsU=; b=EW4pB2FMIv4/4HIH3YQ4flv2fAx5KG8ZrqQbggkoD8QwYmJnM9I74rpcb1vgZz6T14DK9o 6jZUUri3RffLYRRfSsnUKEOUqxvGSMxpsKY9a765koz0Os2iIriA43dOiBjFnq/gBhvsSy u4A5ISb4LLHIIzQW8XzbpJhRL/x8PnPqL/YvZht282gH/Lop3k6mJzs1Hg1fxeC48mnuEx LPl0ZxWZQVmoqB6V2Ahz8lGEFzOpD+o7U6+w123xdjg/DCCEmcwrASRzGqBKwscBFAMiiq 3RPfjW5hFWq1scGsxowoR+kDkf0DixEGEiSucpcRn5//eDtyif8BaZgA9Pm41Q== From: Zane van Iperen To: ffmpeg-devel@ffmpeg.org Date: Sun, 9 Apr 2023 22:25:41 +1000 Message-Id: <20230409122543.223974-1-zane@zanevaniperen.com> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Subject: [FFmpeg-devel] [PATCH 1/3] avcodec/brenderpix: remove support for type 18 pixelmaps 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 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: In BRender version 1.1.2, type 18 was a vendor extension, and is not YA8. In 1.3.2, type 18 is BR_PMT_RGBA_4444, for which there's no AV_PIXFMT_* equivalent. Remove it for now, rather than continuing to decode incorrectly. --- libavcodec/brenderpix.c | 4 ---- tests/fate/image.mak | 3 --- 2 files changed, 7 deletions(-) diff --git a/libavcodec/brenderpix.c b/libavcodec/brenderpix.c index e95ab3d4af..67b89689e7 100644 --- a/libavcodec/brenderpix.c +++ b/libavcodec/brenderpix.c @@ -195,10 +195,6 @@ static int pix_decode_frame(AVCodecContext *avctx, AVFrame *frame, avctx->pix_fmt = AV_PIX_FMT_ARGB; bytes_pp = 4; break; - case 18: - avctx->pix_fmt = AV_PIX_FMT_YA8; - bytes_pp = 2; - break; default: avpriv_request_sample(avctx, "Format %d", hdr.format); return AVERROR_PATCHWELCOME; diff --git a/tests/fate/image.mak b/tests/fate/image.mak index 42dd90feaa..564a326076 100644 --- a/tests/fate/image.mak +++ b/tests/fate/image.mak @@ -22,9 +22,6 @@ fate-brenderpix-defpal: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/bre FATE_BRENDERPIX-$(call DEMDEC, IMAGE2, BRENDER_PIX, SCALE_FILTER) += fate-brenderpix-intpal fate-brenderpix-intpal: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/testtex.pix -pix_fmt rgb24 -vf scale -FATE_BRENDERPIX += fate-brenderpix-y400a -fate-brenderpix-y400a: CMD = framecrc -c:v brender_pix -i $(TARGET_SAMPLES)/brenderpix/gears.pix - FATE_BRENDERPIX-$(call DEMDEC, IMAGE2, BRENDER_PIX) += $(FATE_BRENDERPIX) FATE_IMAGE_FRAMECRC += $(FATE_BRENDERPIX-yes) fate-brenderpix: $(FATE_BRENDERPIX-yes) -- Consider this part optional, it's not required for the rest of the patchset. _______________________________________________ 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".