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 B6ECF46D21 for ; Sun, 9 Jul 2023 19:22:43 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6CA4368C6B3; Sun, 9 Jul 2023 22:21:56 +0300 (EEST) Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 372A168C69D for ; Sun, 9 Jul 2023 22:21:49 +0300 (EEST) Received: by mail-ot1-f42.google.com with SMTP id 46e09a7af769-6b71ee710edso2937070a34.2 for ; Sun, 09 Jul 2023 12:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688930507; x=1691522507; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=kpA1ysD6ELfQbaoi8JAu/oANxAY9DPCKBlFrhTPDKcM=; b=SqFSfuiCRVIhYPg/u6IP9iaPh3+jX8MFpdcrOp9irjI5H1t2p6pLybi/wY417b0yIV c9QmYsGljVnHs5QSDNB5HDnGHFPGiElUh5PZIGh0za3RWByCwyPK7L1JHaLuPc9df4UB irRC2M4NM6HaIKb0JvDd9qmxTnlhasQTBgOFlF/E+m6WYwjed/k74IVvI0SB3m/PJwYl iu9bUZeGR6/gNDXW2a9OaFqCD6mop41pOwIJCTrRVqtOsHGH9h7IHrm2EKR05Z4WIsOo Sizpm4IMW60niZYgyufyvDs0jGmzufjlBXsZ0e81PtuiT6ZIIc3XcXbYZbq6zH/9BEBI SXUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688930507; x=1691522507; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kpA1ysD6ELfQbaoi8JAu/oANxAY9DPCKBlFrhTPDKcM=; b=duuMNmM+9wEUag4HpXFFvJBXBGzQvSxtYxystLWQLxQInQ2yaVUKS1qhgn38z8I2jL SZhFWGnefE/XhbJ6QqA7MEIHsbRrHKHf/aETmVZVR6hfZUfmUGP1rIxxdwC1tHCgWN0T T+P35bPGgyzo4DBkSLf2US29CcBIv0/7mxjVR88DktrXhwYb+fHrd1kEUljYsql9fsTl Pv+kxa0UIX6uQbYQugCwTIPHDsLZxIbmqSoD43kUa/dbAMPWaXc9zjrxXtcPJMLuKIaF vD8fOHVz6DrMu/GHYaM50u/Y43NUQGuq2q88FeKqmzH4qlKgQqSo02WXZ/KJsAcWS2Ru 7QRg== X-Gm-Message-State: ABy/qLZruptOzNm7s/CteVH60/CT5SNOsOEFsBJAPMEfF2hALq3bWMQl I5FBf0ZKM3jOyvBB6OzP492RQ61tN8E= X-Google-Smtp-Source: APBJJlErYlm/8N4s53oFAL0lpApVo3y8KonjMKAaEqymmCqJiW/mDhpKssnGdqyDmC53kgy9SCHiGA== X-Received: by 2002:a05:6830:22f6:b0:6b7:4e25:4c08 with SMTP id t22-20020a05683022f600b006b74e254c08mr9466542otc.12.1688930507584; Sun, 09 Jul 2023 12:21:47 -0700 (PDT) Received: from localhost.localdomain (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id v26-20020a9d69da000000b006b469ace1b1sm3615933oto.22.2023.07.09.12.21.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jul 2023 12:21:47 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sun, 9 Jul 2023 16:21:10 -0300 Message-ID: <20230709192110.5934-7-jamrial@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230709192110.5934-1-jamrial@gmail.com> References: <20230709192110.5934-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 7/7] avcodec/test/avcodec: check decoders for FF_CODEC_CAP_SETS_PKT_DTS 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: Ensure that only decode() callback ones set it. Signed-off-by: James Almer --- libavcodec/tests/avcodec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/tests/avcodec.c b/libavcodec/tests/avcodec.c index bbf5289af2..08ca507bf0 100644 --- a/libavcodec/tests/avcodec.c +++ b/libavcodec/tests/avcodec.c @@ -175,6 +175,10 @@ int main(void){ !(codec->capabilities & AV_CODEC_CAP_FRAME_THREADS)) ERR("Decoder %s wants allocated progress without supporting" "frame threads\n"); + if (codec2->cb_type != FF_CODEC_CB_TYPE_DECODE && + codec2->caps_internal & FF_CODEC_CAP_SETS_PKT_DTS) + ERR("Decoder %s is marked as setting pkt_dts when it doesn't have" + "any effect\n"); } if (priv_data_size_wrong(codec2)) ERR_EXT("Private context of codec %s is impossibly-sized (size %d).", -- 2.41.0 _______________________________________________ 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".