From patchwork Sun Dec 29 23:38:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 17048 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 8AE9B449027 for ; Mon, 30 Dec 2019 01:41:51 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 629DD68AD12; Mon, 30 Dec 2019 01:41:51 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe02-3.mx.upcmail.net (vie01a-dmta-pe02-3.mx.upcmail.net [62.179.121.159]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BAD5C689F93 for ; Mon, 30 Dec 2019 01:41:44 +0200 (EET) Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-pe02.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1iliBs-0008NU-1w for ffmpeg-devel@ffmpeg.org; Mon, 30 Dec 2019 00:41:44 +0100 Received: from localhost ([213.47.68.29]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id liAtiW8O4wlysliAtisoWw; Mon, 30 Dec 2019 00:40:44 +0100 X-Env-Mailfrom: michael@niedermayer.cc X-Env-Rcptto: ffmpeg-devel@ffmpeg.org X-SourceIP: 213.47.68.29 X-CNFS-Analysis: v=2.3 cv=E5OzWpVl c=1 sm=1 tr=0 a=2hcxjKEKjp0CzLx6oWAm4g==:117 a=2hcxjKEKjp0CzLx6oWAm4g==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=GEAsPZ9sns4A:10 a=ZZnuYtJkoWoA:10 a=v40tKg8zWVnYN99855UA:9 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 30 Dec 2019 00:38:17 +0100 Message-Id: <20191229233819.17510-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 X-CMAE-Envelope: MS4wfCXf2mKk2xQsxgcLBL8td0Colfcinwdqa+EBntQ7997x3fkggGyGRbxZozeshCrW+SMLDkYzV8Qz0c0jFz40matx1RX7I/Ty7I9IsR21jO1L9hb16vXD HvH3nwl0mDesnNbzLbh4jJAIGlxwlWkRAl8HgnrARNd1iq9DSaITxdSe Subject: [FFmpeg-devel] [PATCH 1/3] avcodec/avcodec: Add codec_tags array to AVCodec 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" This allows the fuzzer to target meaningfull codec tags instead of hunting the 4gb space, which it seems to have problems with. Suggested-by: James Signed-off-by: Michael Niedermayer --- libavcodec/avcodec.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 119b32dc1f..b0c6a8f2e3 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3634,6 +3634,12 @@ typedef struct AVCodec { * The user can only access this field via avcodec_get_hw_config(). */ const struct AVCodecHWConfigInternal **hw_configs; + + /** + * List of supported codec_tags, terminated by CODEC_TAGS_END. + */ + const uint32_t *codec_tags; +#define CODEC_TAGS_END -1 } AVCodec; #if FF_API_CODEC_GET_SET