From patchwork Tue Sep 8 12:33:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 22166 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 CA55844BBA3 for ; Tue, 8 Sep 2020 15:42:11 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A8B5268B4FD; Tue, 8 Sep 2020 15:42:11 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0C72C68B411 for ; Tue, 8 Sep 2020 15:42:05 +0300 (EEST) Received: by mail-pg1-f194.google.com with SMTP id 5so9962843pgl.4 for ; Tue, 08 Sep 2020 05:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=3w/7Ni1q/wMB5hogfD1CgXmb7wH2YgiruOuDyjjQCA8=; b=Gj2vqtprqXuQtcZ4JWhmE2wdzzpaOjp+yT0i+uApU8V20KEYQm9f13WhXtI311G5ZP zrMrbuWBDzoN4hP5O7XmYhfCPUb7qSbw9fQuv9U238Z/P49UOIpqgXGhxQoB8tV0AYUG E/FfGVZzCrI1oAsGuZ6s9O77DpXLO7/lqBVJTiVdYj42+FoPHrg8hDsVxbMIvUXH7Kj8 8zL6FxU1vw0v/eS6l56fGKuVsDJ+SPwpU65lkDWpdKdQg5VuYV86bxNEDfiiCILJRXjJ Hl2lyjzamdC3lsLFY1J0kQ3v8qAHtg8v8zZo0ens+5bsAPn1LuOmeTfDfSgZNJ9fEHCJ 6arQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=3w/7Ni1q/wMB5hogfD1CgXmb7wH2YgiruOuDyjjQCA8=; b=q4IafYRakO01obEOEyV9VT1xpr2nzFnEwwYPrvofSQyCfpn4fjop3Fo/lABvQzqChU awkfyE67ioVSIQ2oGWqTGeeiNMkfOnwmYJaQu5cTClOpibNYKne7wMC77hpBWKITIn/W yyRAPEK542ROyT2MeUDoyJvGHnhmzeGsEgHw10aqdeUaNOBc1yL7Yg6dRPWzqHG4LJiK Cvk5+txXf89feIpqpbWswHrbHmyI6aCMek3hGFpBYTTiaAt+82l2Oc3A5uHN9klQDm0M k8+ii1coD67GNMk/31nwdyCHF03Fj+vQ9tpUXlIw7D2Kw6Ji8N085B3GDfQS3O0tYbgM BKcw== X-Gm-Message-State: AOAM533w8G7+GQXF2mTvWA2WLVqzZEsJE1H0QcbZ+cbYNPcKNAfFQt5I wWP8EVnH74CzDpAkaWhElqmQ5M4DbGI= X-Google-Smtp-Source: ABdhPJxNgfw4rCdFD+uYfBp80y1Lw9ordEvTcrNTyZqt7dQkwcfmTwEzVdNynkopiYsR51yjd8It3Q== X-Received: by 2002:a62:d456:0:b029:13c:1611:66c2 with SMTP id u22-20020a62d4560000b029013c161166c2mr21964631pfl.13.1599568425002; Tue, 08 Sep 2020 05:33:45 -0700 (PDT) Received: from vpn2.localdomain ([161.117.202.209]) by smtp.gmail.com with ESMTPSA id n127sm18104689pfn.155.2020.09.08.05.33.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Sep 2020 05:33:44 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Tue, 8 Sep 2020 20:33:40 +0800 Message-Id: <1599568420-2291-1-git-send-email-lance.lmwang@gmail.com> X-Mailer: git-send-email 1.8.3.1 Subject: [FFmpeg-devel] [PATCH] avfilter/vf_showinfo: add const to the AVFrameSideData instance 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 Cc: Limin Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_showinfo.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 1be9396..b9f1a49 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -57,7 +57,7 @@ static const AVOption showinfo_options[] = { AVFILTER_DEFINE_CLASS(showinfo); -static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, AVFrameSideData *sd) +static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, const AVFrameSideData *sd) { AVSphericalMapping *spherical = (AVSphericalMapping *)sd->data; double yaw, pitch, roll; @@ -96,7 +96,7 @@ static void dump_spherical(AVFilterContext *ctx, AVFrame *frame, AVFrameSideData } } -static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd) +static void dump_stereo3d(AVFilterContext *ctx, const AVFrameSideData *sd) { AVStereo3D *stereo; @@ -114,7 +114,7 @@ static void dump_stereo3d(AVFilterContext *ctx, AVFrameSideData *sd) av_log(ctx, AV_LOG_INFO, " (inverted)"); } -static void dump_s12m_timecode(AVFilterContext *ctx, AVFrameSideData *sd) +static void dump_s12m_timecode(AVFilterContext *ctx, const AVFrameSideData *sd) { const uint32_t *tc = (const uint32_t *)sd->data; @@ -130,7 +130,7 @@ static void dump_s12m_timecode(AVFilterContext *ctx, AVFrameSideData *sd) } } -static void dump_roi(AVFilterContext *ctx, AVFrameSideData *sd) +static void dump_roi(AVFilterContext *ctx, const AVFrameSideData *sd) { int nb_rois; const AVRegionOfInterest *roi; @@ -152,7 +152,7 @@ static void dump_roi(AVFilterContext *ctx, AVFrameSideData *sd) } } -static void dump_mastering_display(AVFilterContext *ctx, AVFrameSideData *sd) +static void dump_mastering_display(AVFilterContext *ctx, const AVFrameSideData *sd) { AVMasteringDisplayMetadata *mastering_display; @@ -178,7 +178,7 @@ static void dump_mastering_display(AVFilterContext *ctx, AVFrameSideData *sd) av_q2d(mastering_display->min_luminance), av_q2d(mastering_display->max_luminance)); } -static void dump_content_light_metadata(AVFilterContext *ctx, AVFrameSideData *sd) +static void dump_content_light_metadata(AVFilterContext *ctx, const AVFrameSideData *sd) { AVContentLightMetadata* metadata = (AVContentLightMetadata*)sd->data; @@ -187,7 +187,7 @@ static void dump_content_light_metadata(AVFilterContext *ctx, AVFrameSideData *s metadata->MaxCLL, metadata->MaxFALL); } -static void dump_video_enc_params(AVFilterContext *ctx, AVFrameSideData *sd) +static void dump_video_enc_params(AVFilterContext *ctx, const AVFrameSideData *sd) { AVVideoEncParams *par = (AVVideoEncParams*)sd->data; int plane, acdc; @@ -206,7 +206,7 @@ static void dump_video_enc_params(AVFilterContext *ctx, AVFrameSideData *sd) av_log(ctx, AV_LOG_INFO, "%u blocks; ", par->nb_blocks); } -static void dump_sei_unregistered_metadata(AVFilterContext *ctx, AVFrameSideData *sd) +static void dump_sei_unregistered_metadata(AVFilterContext *ctx, const AVFrameSideData *sd) { const int uuid_size = 16; uint8_t *user_data = sd->data;