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 7C3104BF4B for ; Mon, 2 Feb 2026 21:46:45 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'hK7BUAuPLGTb5IophE3DbOL7lpgy49AlEuHzktrnW9Y=', expected b'WxGM/DNLtzzp0FIyN6DfCCpa7X341IPRORH60BW+6aM=')) header.d=ffmpeg.org header.i=@ffmpeg.org header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1770068796; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=hK7BUAuPLGTb5IophE3DbOL7lpgy49AlEuHzktrnW9Y=; b=uL0Bh3t7J6d5lmriXv4hbxwnpoFzJmI1ilWuOlkhcBmG7TbxCETgZj16KVq7gSNwBxbp/ hf4ePjBSE8Z4Ft+7FqBEgeAWH9MtleKNNaIJ03ZHs4JRbow4wMa3F0bsHJlMPUoAlXcP+7v vgv6s/f5O13gP5jUpy7c+2xUHjEV8eFAIbaDGxwPqzZeWQpXf/lis3cdS7cXYtyf9pZZXlY IsixxA0ncAbREphN9k93INhMYL0t5MzdAaDMGt0w5sDUjbp3gaFSJeuPNraobAG4QpA25in uPvlsjKybbRDpTpvy5L25gSGAw6u7yi6XYmJJwega5wvxVWL9I5ewwjh/WaA== Received: from [172.20.0.4] (unknown [172.20.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id CD0C8690E35; Mon, 2 Feb 2026 23:46:36 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1770068780; b=aEb60yhpaf/KYk//+2ChnuePLnaaRHVSTkuJ0u97mfYv0quhTHBqWyXCOc5ueRADrBdGm vvAJEhJvtk6+uszQSxkOovcT5bZy9cFHvtVtm7wyDmitD9EU06DcEc4E0PCwjtdOwmNmado aGdk6SDxKQSMTzw1x75irrBLjJFVxOZmhFo6Lxu3VPzM4GtEL3ZHioIY1AYqgsjtemEPoY7 EMH6Vl+YBjVv3VTMdylMZJ5mY5PAf+8PZMSzw8urDeUlgSJzapYgyNfwBtHIFtrcal0LzaD zYp+ZTHB86aWpwamvkct4nxm7njIkIg+Ox6S9NZBlgMQBZFQPcSU05F9Jh9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1770068780; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=3Tjsg4VOL7yBuvpFIyRNQIH06yHtKxrDJt4OgSM98Ls=; b=ARHFBwN1mZg/wEvJJArita49W1+fdpkcr0abs7YQgJl0SdgEFdzEkVEsBEECZOu+BiQ4j Z7THe5V+lYp3RJW28xGpSIWsPJV8fGm261qb8HQTd7QsIIQHrs7BdHreQbFAkzPM5MNh3gM yLrRLpJAkya16N7xPI16IVvXXIdp8VLkh5wvbkKzz4lcN6HuR1EqPxlaOWcilPSMqRhXT/g 9utXJxGdvh9M49xHIgjZC7TwK++Ft4qNnotWHwL+b9QJ29GlMoApWefA59ywUjKzypEma/F /YE/VRilb4QPZRUszc+/QgVvaNb/Za3K00tRHijbWDQRB3drb9ffgYMg1Lsw== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=pass header.from=ffmpeg.org policy.dmarc=quarantine Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=ffmpeg.org policy.dmarc=quarantine DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1770068771; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=WxGM/DNLtzzp0FIyN6DfCCpa7X341IPRORH60BW+6aM=; b=eYcmvtw/X7NmkBP1qFotAx9rtYnfku7kFUgimeaSD+JgNZdUMLCkAjGa3ls9v+YKqyy4+ QPpvKD5ib0lYMqBnaHAidlKifTDb0CymHPxYYP6iGQT6fDpDylJDievOhdtdulopvjP3gul o86ZftnAd6iE4mtjGGaE0W3YxQ052rPGlAtupsUy0m3qwUHAebrdR9gOv2nJR2z+cZyU9jJ EvABXhfxYQx8Nz3H+6GfhA/81LGGGt3a8rHFxkgY9R016k/l2308lwjN6Qhy0ummH+c88PE 54eZIefzr+J7P+UWvBZZPMp8IihsmwqpRLQTv2qMNJJo7g21vO7DcVD2GcsQ== Received: from c8d966988b92 (code.ffmpeg.org [188.245.149.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 953D4690E38 for ; Mon, 2 Feb 2026 23:46:11 +0200 (EET) MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Mon, 02 Feb 2026 21:46:11 -0000 Message-ID: <177006877173.25.6859219608372993501@4457048688e7> Message-ID-Hash: S7M5BC5HBA6DWFGDJZWYOG6VCMMCMZ4Q X-Message-ID-Hash: S7M5BC5HBA6DWFGDJZWYOG6VCMMCMZ4Q X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PR] avcodec/hevc/hevcdec: take into account YUV400 in block length (PR #21630) List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Valerii Zapodovnikov via ffmpeg-devel Cc: Valerii Zapodovnikov Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #21630 opened by Valerii Zapodovnikov (Balling) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21630 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21630.patch Signed-off-by: Valerii Zapodovnikov See issue #11551. >>From 90447b420fdc2b2a693623ecccdefe5e5845ec59 Mon Sep 17 00:00:00 2001 From: Valerii Zapodovnikov Date: Tue, 3 Feb 2026 00:42:35 +0300 Subject: [PATCH] avcodec/hevc/hevcdec: take into account YUV400 in block length Signed-off-by: Valerii Zapodovnikov --- libavcodec/hevc/hevcdec.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index 531d1c26f3..fd8e269a8c 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -1668,10 +1668,11 @@ static int hls_pcm_sample(HEVCLocalContext *lc, const HEVCLayerContext *l, uint8_t *dst1 = &s->cur_frame->f->data[1][(y0 >> sps->vshift[1]) * stride1 + ((x0 >> sps->hshift[1]) << sps->pixel_shift)]; uint8_t *dst2 = &s->cur_frame->f->data[2][(y0 >> sps->vshift[2]) * stride2 + ((x0 >> sps->hshift[2]) << sps->pixel_shift)]; - int length = cb_size * cb_size * sps->pcm.bit_depth + - (((cb_size >> sps->hshift[1]) * (cb_size >> sps->vshift[1])) + - ((cb_size >> sps->hshift[2]) * (cb_size >> sps->vshift[2]))) * - sps->pcm.bit_depth_chroma; + int length = cb_size * cb_size * sps->pcm.bit_depth + + sps->chroma_format_idc != 0 ? ( + (((cb_size >> sps->hshift[1]) * (cb_size >> sps->vshift[1])) + + ((cb_size >> sps->hshift[2]) * (cb_size >> sps->vshift[2]))) * + sps->pcm.bit_depth_chroma : 0 ); const uint8_t *pcm = skip_bytes(&lc->cc, (length + 7) >> 3); int ret; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org