From patchwork Mon Jul 15 14:39:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 13951 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 EC3DA447A07 for ; Mon, 15 Jul 2019 17:47:35 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C8B4C68AB88; Mon, 15 Jul 2019 17:47:35 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 263CF68A8F5 for ; Mon, 15 Jul 2019 17:47:29 +0300 (EEST) Received: by mail-qt1-f196.google.com with SMTP id h21so15832631qtn.13 for ; Mon, 15 Jul 2019 07:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=MfeF4QBEtV9yHSaAURgeIt1eBc0rHseZTbe5fy+oLrk=; b=lYnpjis3FgQSgIrUGZNZFYHl3EXqPksXNDafqYPmO+LxqXExpOzLVVxjam4XRqyk5Y q5L+OJ+/CBYNJE/li/qasA/7rLq+M3l7CyzIwWYjyxyvZZs/s1QwKYZtL2WzFBma+k5O fwIJYDUcCLToR07yg6Y9llinvk3IseO58NeUG8K3Z96GHuKmYXv3HoaTP+UC/DF0AXvu sMtLSoJW3aoRoG+PxZ8gG4yxpIikn+irjO79maN/ti5lXrzwcY3rskMeFve6kGJuoBqc fID+qEhbw7xIvLIDqC78xq5wdMct+cZe1bBRgY/SjplWx1nZAhEWTURgDo3nDLY0900g E2Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=MfeF4QBEtV9yHSaAURgeIt1eBc0rHseZTbe5fy+oLrk=; b=tTEGXBQVnxu4o8LevXBrpe68ld8p0F6aOmIU4BxNHLV+qK3Ofqm3E8k3gDVDRLhysU oArVFHREryPAC795ObGEP/+b4trsv/wwolHwndTltJLPrcswG08yR5YoMLK56w3PWyyJ 2UzT9OlwvlFzZ436w+EJ7r4g0dVMRSnft7f53ouT3+RMbNHOxVZz8hbRZLuQciTmlvfK TCm+gelCH9EvYodfowsWTHpjmfQ2ZtUOPphqRNCvZDcVa6LdnnAjSqsfvLplt/UkiQnA cedguWhETfCg+DZq4Ym9Cddl+WLxbODZXqRyrkxhkm3/bZJ7sZn7bdAzqvyokVNVTViq bmiw== X-Gm-Message-State: APjAAAU2JZFo0g6EAXm5tSMtrKq8RxNlMO2qEb4htRla4+g07fOO6G7s GSdd7fvnbR9EO/5+aOKb9X/z5yFRRXw= X-Google-Smtp-Source: APXvYqwHpuaJ1rB7VmQa1qf4DGLvolKJxm6pEPxt1dIfWfcV1bdutjewpcAAMe5GCLb0dGs8T4O0Yw== X-Received: by 2002:ac8:17ac:: with SMTP id o41mr18254259qtj.184.1563201617006; Mon, 15 Jul 2019 07:40:17 -0700 (PDT) Received: from localhost.localdomain ([181.23.71.117]) by smtp.gmail.com with ESMTPSA id a54sm9269212qtk.85.2019.07.15.07.40.15 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 15 Jul 2019 07:40:16 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Mon, 15 Jul 2019 11:39:57 -0300 Message-Id: <20190715143957.1277-1-jamrial@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avcodec: list the allocation requirements for intra_matrix and inter_matrix fields 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" Signed-off-by: James Almer --- See https://git.videolan.org/?p=vlc.git;a=commitdiff;h=d86c4c87aa78130a4fd00294e25df865d0e2b327 libavcodec/avcodec.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 2528bd89ab..646b8f05fc 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2057,15 +2057,19 @@ typedef struct AVCodecContext { /** * custom intra quantization matrix - * - encoding: Set by user, can be NULL. - * - decoding: Set by libavcodec. + * Must be allocated with the av_malloc() family of functions, and will be freed in + * avcodec_free_context(). + * - encoding: Set/allocated by user. Freed by libavcodec. Can be NULL. + * - decoding: Set/allocated/freed by libavcodec. */ uint16_t *intra_matrix; /** * custom inter quantization matrix - * - encoding: Set by user, can be NULL. - * - decoding: Set by libavcodec. + * Must be allocated with the av_malloc() family of functions, and will be freed in + * avcodec_free_context(). + * - encoding: Set/allocated by user. Freed by libavcodec. Can be NULL. + * - decoding: Set/allocated/freed by libavcodec. */ uint16_t *inter_matrix;