From patchwork Sat Sep 26 10:27:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 22603 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 8586044A10F for ; Sat, 26 Sep 2020 13:30:07 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 68AD268B5C6; Sat, 26 Sep 2020 13:30:07 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BA1FC68B6C2 for ; Sat, 26 Sep 2020 13:29:59 +0300 (EEST) Received: by mail-wr1-f67.google.com with SMTP id m6so6671500wrn.0 for ; Sat, 26 Sep 2020 03:29:59 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=y2UdPqqAJ/oar1DF4H9UCbS0I4d+1VA2SLRscs1oP9I=; b=dJfS1ga/lDlajG/0o2QBHa2gnxDUTrxWG/Td1gbIAD07YALKjYAg4DE4A8zxw+tP64 2PwrOF8TPib4Muafo8UfW6QvlRjn8L/FrPoqMD4wjsQo+ae08KU7YgLv7uFAG8xZZ7HF ldpxiURFTnZHZtisIss2L0iEKE8vEZNSOG2C7RfixDYoOSH4bzrGLUms5+ZzE/uQSqbs Ts+Fr2hKnh/HxpYeEfvx0MSFJ1rgBqXOY4IusvvoK4xy+vp8cVtCxetpofWAu/GtQ9wV G10de6D2hm709DcIkxYYKD5BjpTrsOZ6uN/OzWE2Zd/Y+Dpwb0pQovDgxsqos7J1D91Z L3tg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=y2UdPqqAJ/oar1DF4H9UCbS0I4d+1VA2SLRscs1oP9I=; b=DDoPwQiTTnndWvyhC4uSFX8FrsvrTArzOc8Iewjn6BDRe3XWe2WNGnB+xYHBNLV9vv 5FWC+GAobEuHprr77A7FQpkgOiA6ck0X0UNkb9Z8tugjPfQ07aJ8vB495r5ChRroFaIv SQxpLyv3Q6Rs7KeEUSD6obykwWL9mrzR1+WDh/wOyYuBWMIpfjNiRcE7SMSzsLN74KPR m3r9JW5j4K4eh1pqDgzpUc8nHUrropftNVqwvqeNUB+7EYvECyPf5rzAmwK/DaXJ34Sb xMu9+rWuLARaSo8YKrk1v/+GDijtUxbifnZUhZm98im7Q2iDDSLNxluCe3GacTb9IPHz 8ouw== X-Gm-Message-State: AOAM533++5TI7Z25WUYY0pya24NLZp4F+mIDGdNRwAksGNbno+zS/6ng lYbkZ14YcRUBj3oYfPhO7dDVHjm19B0= X-Google-Smtp-Source: ABdhPJwXj+WjO5Lg3tM4d8376VWvoou3Rww2SgBVlqquKLYkEG6mYyuVq+yOyIS3+1nzqK4LNenR3w== X-Received: by 2002:adf:94e3:: with SMTP id 90mr3742641wrr.380.1601116199004; Sat, 26 Sep 2020 03:29:59 -0700 (PDT) Received: from sblaptop.fritz.box (ipbcc1aa4b.dynamic.kabel-deutschland.de. [188.193.170.75]) by smtp.gmail.com with ESMTPSA id k8sm6064867wrl.42.2020.09.26.03.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2020 03:29:58 -0700 (PDT) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 26 Sep 2020 12:27:46 +0200 Message-Id: <20200926102804.228089-7-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200926102804.228089-1-andreas.rheinhardt@gmail.com> References: <20200926102804.228089-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 07/25] avcodec/magicyuv: Use const uint8_t* for pointer to immutable data 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Andreas Rheinhardt --- libavcodec/magicyuv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c index f7dfef0eb8..3413d8f298 100644 --- a/libavcodec/magicyuv.c +++ b/libavcodec/magicyuv.c @@ -63,7 +63,7 @@ typedef struct MagicYUVContext { int color_matrix; // video color matrix int flags; int interlaced; // video is interlaced - uint8_t *buf; // pointer to AVPacket->data + const uint8_t *buf; // pointer to AVPacket->data int hshift[4]; int vshift[4]; Slice *slices[4]; // slice bitstream positions for each plane