From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id E12BD4F0F1 for ; Sun, 15 Jun 2025 17:02:41 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id B162468D9A6; Sun, 15 Jun 2025 19:58:31 +0300 (EEST) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id F422368D992 for ; Sun, 15 Jun 2025 19:58:29 +0300 (EEST) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-235ef62066eso54853935ad.3 for ; Sun, 15 Jun 2025 09:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750006708; x=1750611508; darn=ffmpeg.org; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date :references:in-reply-to:message-id:from:from:to:cc:subject:date :message-id:reply-to; bh=9xRnXUjmbiIc2TllkwyVLJdYbWFUmuY+uZIBwWU1NPs=; b=XhEhVq7m0ftGT6OssWfrneq3rGGmIZ6n1gRjzGafSnm0dBZowTI2FCTGzyUHfRpZwu LixFk40gZLxVGS0ObwVtOeI76EeDVtsa4/2lJTFU8XxF5UYL7c/W5Jq/hvhborANd8RU d0MFJ/DaNswFlJJ8roMlsnRsgYnKJ6P8C5HRu8SKgKFq2Nti6sn85oalPzZzAmbviMHD zev9ZreDFLAqAwf60hkAFrQLQ6RPQz7ONN1T5zmW2hdxv1JWjxaYuuVatHV1UTL+m6k1 jiSXMR6R6DQnrkqdtuiUqTOXIkDgvIARskeBezAij99+t3biqK0vrVxoG1NRJTsVWvKA 1thA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750006708; x=1750611508; h=cc:to:mime-version:content-transfer-encoding:fcc:subject:date :references:in-reply-to:message-id:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=9xRnXUjmbiIc2TllkwyVLJdYbWFUmuY+uZIBwWU1NPs=; b=CuJt1P/l+u9JGRzddItcM+mqt/8/igveLRnFo890jM7J+9M9ue2yf+96D6Vvrz5x3c i5BFeccNtNvTghhJDoxNM8y2PPOq8+ZotpGwAg9OEsyJrd4k/by9fGM69OkcfSq8Kpxq HORVT01c4LAisyxH5dZQQ1vji70EtoXYoc0zTrXK+2k0+CA6qzOh1aqgYu1JH0+G6kMZ 7ZGWi7whuIGwZHqHk2ZhCe9+7g2eMXfdJUekzwMbkMPcr1RLZ3w0p4o33xIPsVsYOzS6 N+PMrPy6OE8NrpjfV3LMbYIXuHdMMr6GorGkoHKRCvvX4JjwgxQZMbB7/7NTvCwdkUBr 6CEA== X-Gm-Message-State: AOJu0YwEaIs/JcMhsMJhZIiAE9nZhIIQOhXCcxQZt1xaBZhQiV/6DNLK suahalQ0Nz4hkj1MYFTNN8K4qocoOMGxKz04RLpK8/ysyD8y9aCcwQCo2JhhVA== X-Gm-Gg: ASbGnctSShzjH8ye08JcDD00aEKCcZUElt06IS+h0VSDnkmJ568okyIXRV93Af6dKty A200jSWj5BjquzCDPEZD2HY0gRy9cyw7rdbYGNUGN728SoJsb23Xzz474ju5sfY7ADvY4cMUNm4 BZV+NPYFh+ufB9yiMY60kcftP3bZetbzaj0HII7s8+jNrrOhphMTESAD+Eer58L7hM6H3+gjbmM odLfkon/bFwS+IxHfpmidWrf+0acDycwyUXS9aEBAg+CxnoqThsoHwXjGQKAuZdiCocope0FRZQ /dei86L7O06bA5cNZtFkLKdM26qQ2cXvgfL5gximwVDLWM6AGC0g+Sv7J4t7nUaI2CuGgGbtHBu Q9uHMm5sNy0zRr3RC X-Google-Smtp-Source: AGHT+IEzteGTR3lpvhl3l5n8pN4tC9XoaC/T5YqCHEECtNtItc2CQqva/LiwHqTkWfrqE04s/xxYUw== X-Received: by 2002:a17:902:ea0d:b0:234:8e54:2d53 with SMTP id d9443c01a7336-2366b3f8713mr94906045ad.45.1750006708293; Sun, 15 Jun 2025 09:58:28 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2365de783e6sm45953405ad.106.2025.06.15.09.58.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jun 2025 09:58:27 -0700 (PDT) From: Andreas Rheinhardt X-Google-Original-From: Andreas Rheinhardt Message-Id: <12a8fd97b612813566a36fc7e59d026c38247310.1750006480.git.ffmpegagent@gmail.com> In-Reply-To: References: Date: Sun, 15 Jun 2025 16:54:30 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH 39/47] avcodec/mpegvideo: Zero-init mbintra_table 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: From: Andreas Rheinhardt Up until now, they are marked as dirty (filled with 1), meaning that the entries are in need of a reset via ff_clean_intra_table_entries(); but actually, the entries are initialized to the state that ff_clean_intra_table_entries() produces, so they can be marked as non-dirty (i.e. filled with 0). Signed-off-by: Andreas Rheinhardt --- libavcodec/mpegvideo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index ae0c847aa4..df2c130a16 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -361,9 +361,8 @@ av_cold int ff_mpv_init_context_frame(MpegEncContext *s) // Note the + 1 is for a quicker MPEG-4 slice_end detection if (!(s->mbskip_table = av_mallocz(mb_array_size + 2)) || /* which mb is an intra block, init macroblock skip table */ - !(s->mbintra_table = av_malloc(mb_array_size))) + !(s->mbintra_table = av_mallocz(mb_array_size))) return AVERROR(ENOMEM); - memset(s->mbintra_table, 1, mb_array_size); ALLOC_POOL(qscale_table, mv_table_size, 0); ALLOC_POOL(mb_type, mv_table_size * sizeof(uint32_t), 0); -- ffmpeg-codebot _______________________________________________ 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".