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 B192E424A9 for ; Thu, 17 Mar 2022 03:35:28 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E5F3D68B148; Thu, 17 Mar 2022 05:35:25 +0200 (EET) Received: from out203-205-251-27.mail.qq.com (out203-205-251-27.mail.qq.com [203.205.251.27]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A6CB768AF50 for ; Thu, 17 Mar 2022 05:35:18 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1647488113; bh=OgwxXNoZi/JZHWQsOk2ngdxj1d5anogqtcJCUlcgf5s=; h=From:Subject:Date:References:To:In-Reply-To; b=x6j/uxRpNoxhSvt4+qthSif7CsR4vmmHP/dH4y4NWHBl0rRfD5XaK+V9sPzA3uT7L +1nF+AFB02Sd5RpNJYjEQPdO1IiIL7Oj8tw/ObWaX9ge9HVotLImR7aywAVHlG/041 0CXq1y7tvdbQOKiZ4YNiLYM1d1oVM776y6HwOCkc= Received: from [192.168.255.10] ([119.123.135.31]) by newxmesmtplogicsvrszc8.qq.com (NewEsmtp) with SMTP id 8CB8DE00; Thu, 17 Mar 2022 11:35:11 +0800 X-QQ-mid: xmsmtpt1647488111thwmkj772 Message-ID: X-QQ-XMAILINFO: NvH2zBBgt3uT5h1JHTEYNdsZidYQkZaxnpBnfCgSY9z9B1uit6SMDp7Jbhi6Tb Z4YvMI0MjIu2npi+zUKKAmWqHCgtDjoUmGILljP91Wi8dB2eBXJlEUKMK4RKiJ4fJVFYe7kP8DMo hRGm0PJtrEHfv3K37xkboGCahiHY4vI2bAK4CtOkaX1wpwImVBpybnSgYuUY8dzE07bVPn9bN3JP +BrHPkKi/x5iE0GBM1B4mgpKmaYQVktytXn53HVNMeZ5fex90roZYbNbG/ILOF/l1U5zoD7rumB9 TxgfNRJMUPuj8hXZpnNV+Re3ki/0Kat/lTJlCG+8Z6fCOvW24GtkSmaVqCWVAyhFFDmrTYlymC3S 8PBo4x7ff4LZJN1/arzadg06b+ORsC7+OD4QlSFc3t65iaYgaxHC3EsbaymLSOMfAa/Ylx7gP/hP GqyDHsAwuNQTNQBSnIm6Uj75TOUvI7nWmsjIAkT0fBgbKJ4S0pcBUd2vQr4+PWrxfz3v/S+mBPG0 I/ft9F+6clsAiXFvfhRF105kkfY0e+qBVqoaQLYWTk42/y6+eu/S2T9sW0Dj2HutDgrN7PnB5bST OxoD7a3gAYTE31Cn7pUWHNjtMDob87NyuKxRm/g5RALOIpOBvtu3QSwkrDZt2DfqSjkfPAZJZ4Vc Xk0VLYg6KgsmqPJWVnWCGouAdHeW1MnY+CsgEEv0/M3/0cvUGQcbJzkrdABZHvE1Efz529drSvz5 yjGB+veIFNOc5ZPaeG+elLDWwjBuLdup2McLfAw8SQwMu+RGLe868VZ3iF4ZfB43U6sFXvUt/diU J0EIebTEXfcJfjwDlxFG4TOE4gYgCQdXYIn/+f61m6YbU9oxIrSgf7auV+vPbtO9N6AlWI5cGlTf KURYzjEoXb0qBVnw1EKpExMfnl/VWZgg== From: =?utf-8?B?InpoaWxpemhhbyjotbXlv5fnq4spIg==?= Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Date: Thu, 17 Mar 2022 11:35:11 +0800 References: <20220310043754.53262-1-quinkblack@foxmail.com> To: FFmpeg development discussions and patches In-Reply-To: X-OQ-MSGID: <6A54C8DE-6E94-45F1-A0C0-537E2F1DE9C1@foxmail.com> X-Mailer: Apple Mail (2.3654.60.0.2.21) Subject: Re: [FFmpeg-devel] [PATCH 2/2] avutil/hwcontext_videotoolbox: fix declaration-after-statement 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: Feel free to drop this one, there is no real gain. > On Mar 10, 2022, at 12:37 PM, Zhao Zhili wrote: > > --- > libavutil/hwcontext_videotoolbox.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/libavutil/hwcontext_videotoolbox.c b/libavutil/hwcontext_videotoolbox.c > index e442a95007..13f77a7692 100644 > --- a/libavutil/hwcontext_videotoolbox.c > +++ b/libavutil/hwcontext_videotoolbox.c > @@ -161,11 +161,11 @@ uint32_t av_map_videotoolbox_format_from_pixfmt2(enum AVPixelFormat pix_fmt, boo > > static int vt_pool_alloc(AVHWFramesContext *ctx) > { > - VTFramesContext *fctx = ctx->internal->priv; > CVReturn err; > CFNumberRef w, h, pixfmt; > uint32_t cv_pixfmt; > CFMutableDictionaryRef attributes, iosurface_properties; > + VTFramesContext *fctx = ctx->internal->priv; > > attributes = CFDictionaryCreateMutable( > NULL, > @@ -589,13 +589,13 @@ int av_vt_pixbuf_set_attachments(void *log_ctx, > static int vt_map_frame(AVHWFramesContext *ctx, AVFrame *dst, const AVFrame *src, > int flags) > { > - CVPixelBufferRef pixbuf = (CVPixelBufferRef)src->data[3]; > - OSType pixel_format = CVPixelBufferGetPixelFormatType(pixbuf); > CVReturn err; > - uint32_t map_flags = 0; > int ret; > int i; > enum AVPixelFormat format; > + CVPixelBufferRef pixbuf = (CVPixelBufferRef)src->data[3]; > + OSType pixel_format = CVPixelBufferGetPixelFormatType(pixbuf); > + uint32_t map_flags = 0; > > format = av_map_videotoolbox_format_to_pixfmt(pixel_format); > if (dst->format != format) { > -- > 2.31.1 > _______________________________________________ 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".