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 C4DF542B26 for ; Wed, 13 Apr 2022 15:57:42 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9173068B3A6; Wed, 13 Apr 2022 18:57:39 +0300 (EEST) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5157768B281 for ; Wed, 13 Apr 2022 18:57:33 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id C7A6B240179; Wed, 13 Apr 2022 17:57:32 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 23AwQA6_4QPk; Wed, 13 Apr 2022 17:57:31 +0200 (CEST) Received: from lain.red.khirnov.net (lain.red.khirnov.net [IPv6:2001:67c:1138:4306::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "lain.red.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id BFA4F2400F5; Wed, 13 Apr 2022 17:57:31 +0200 (CEST) Received: by lain.red.khirnov.net (Postfix, from userid 1000) id C8D861601AD; Wed, 13 Apr 2022 17:57:31 +0200 (CEST) From: Anton Khirnov To: FFmpeg development discussions and patches In-Reply-To: =?utf-8?q?=3CAS8PR01MB794407382EC42678297ECB248FEC9=40AS8PR01MB?= =?utf-8?q?7944=2Eeurprd01=2Eprod=2Eexchangelabs=2Ecom=3E?= References: =?utf-8?q?=3CAS8PR01MB794407382EC42678297ECB248FEC9=40AS8PR01MB7?= =?utf-8?q?944=2Eeurprd01=2Eprod=2Eexchangelabs=2Ecom=3E?= Mail-Followup-To: FFmpeg development discussions and patches , Andreas Rheinhardt Date: Wed, 13 Apr 2022 17:57:31 +0200 Message-ID: <164986545179.24258.14673386315148318060@lain.red.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH 1/4] avcodec/encode: Fix check for encoders impl. encode-simple API 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: Andreas Rheinhardt 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: Quoting Andreas Rheinhardt (2022-04-13 16:43:28) > FFCodec.cb is a union. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/encode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/encode.c b/libavcodec/encode.c > index 6ae47b736c..e7ae2cd4c1 100644 > --- a/libavcodec/encode.c > +++ b/libavcodec/encode.c > @@ -589,7 +589,7 @@ int ff_encode_preinit(AVCodecContext *avctx) > if (avctx->codec_descriptor->props & AV_CODEC_PROP_INTRA_ONLY) > avctx->internal->intra_only_flag = AV_PKT_FLAG_KEY; > > - if (ffcodec(avctx->codec)->cb.encode) { > + if (ffcodec(avctx->codec)->cb_type == FF_CODEC_CB_TYPE_ENCODE) { > avci->in_frame = av_frame_alloc(); > if (!avci->in_frame) > return AVERROR(ENOMEM); > -- > 2.32.0 Patches 1, 2, 4 look good. Thank you and sorry for the breakage. -- Anton Khirnov _______________________________________________ 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".