From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 1A5D04C588 for ; Tue, 30 Jul 2024 09:18:36 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7B1E768D744; Tue, 30 Jul 2024 12:18:33 +0300 (EEST) Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0659468D200 for ; Tue, 30 Jul 2024 12:18:27 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description; bh=yQKUuusYglz286PKtc9Rw/a5OPN1hRJK/idCLHNeMDU=; b=LhXZsRo+AqC9561TTt/rIXJ11O YVZXP28CJ8Ki6l+p2fYxs8NQ20KBKfCme1Rr8vXI3kDAx8tkcSJXL4ucZ9SnUOxnyZ5mGw9AsTaCM lV59NIjzgvY3gYUa+o+K0nXA9ZJaPlLshuoDrOiYQxG4N1ApZvjZpi6mBTX2+ujUYuvnsT+b1OFgK YbExQexOtD2o+zVNgtXYTd+RCf2YGLsPQQ/BHM8BWVdkUPpToiFEe1K9bXcJkAgBqnMGREayz8Rku KyFU15tS+brU68zoQP217fS93fhtk92jvGMXMN0FH/U5Aj9zWjxUFm3wUVIJFVedr7jDprUMD45HX fC5XP9qA==; Received: from authenticated user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1sYizy-00Bu3H-7C for ffmpeg-devel@ffmpeg.org; Tue, 30 Jul 2024 09:18:26 +0000 Received: by jupiter.ramacher.at (Postfix, from userid 1000) id 3C40A1011FFE8; Tue, 30 Jul 2024 11:18:25 +0200 (CEST) Date: Tue, 30 Jul 2024 11:18:25 +0200 From: Sebastian Ramacher To: ffmpeg-devel@ffmpeg.org Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Debian-User: sramacher Subject: Re: [FFmpeg-devel] [PATCH 02/18] avcodec/pcm-bluray/dvd: Use correct pointer types on BE 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 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: Hi On 2024-03-29 00:10:31 +0100, Andreas Rheinhardt wrote: > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/pcm-bluray.c | 5 +++-- > libavcodec/pcm-dvd.c | 2 +- > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/libavcodec/pcm-bluray.c b/libavcodec/pcm-bluray.c > index f65609514a..235020d78f 100644 > --- a/libavcodec/pcm-bluray.c > +++ b/libavcodec/pcm-bluray.c > @@ -167,7 +167,7 @@ static int pcm_bluray_decode_frame(AVCodecContext *avctx, AVFrame *frame, > samples *= num_source_channels; > if (AV_SAMPLE_FMT_S16 == avctx->sample_fmt) { > #if HAVE_BIGENDIAN > - bytestream2_get_buffer(&gb, dst16, buf_size); > + bytestream2_get_buffer(&gb, (uint8_t*)dst16, buf_size); > #else > do { > *dst16++ = bytestream2_get_be16u(&gb); > @@ -187,7 +187,8 @@ static int pcm_bluray_decode_frame(AVCodecContext *avctx, AVFrame *frame, > if (AV_SAMPLE_FMT_S16 == avctx->sample_fmt) { > do { > #if HAVE_BIGENDIAN > - bytestream2_get_buffer(&gb, dst16, avctx->ch_layout.nb_channels * 2); > + bytestream2_get_buffer(&gb, (uint8_t*)dst16, > + avctx->ch_layout.nb_channels * 2); > dst16 += avctx->ch_layout.nb_channels; > #else > channel = avctx->ch_layout.nb_channels; > diff --git a/libavcodec/pcm-dvd.c b/libavcodec/pcm-dvd.c > index 419b2a138f..319746c62e 100644 > --- a/libavcodec/pcm-dvd.c > +++ b/libavcodec/pcm-dvd.c > @@ -157,7 +157,7 @@ static void *pcm_dvd_decode_samples(AVCodecContext *avctx, const uint8_t *src, > switch (avctx->bits_per_coded_sample) { > case 16: { > #if HAVE_BIGENDIAN > - bytestream2_get_buffer(&gb, dst16, blocks * s->block_size); > + bytestream2_get_buffer(&gb, (uint8_t*)dst16, blocks * s->block_size); > dst16 += blocks * s->block_size / 2; > #else > int samples = blocks * avctx->ch_layout.nb_channels; > -- Please backport this patch to 7.0 to fix https://trac.ffmpeg.org/ticket/11119 Cheers -- Sebastian Ramacher _______________________________________________ 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".