From: Lynne via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: Lynne <dev@lynne.ee>
Subject: Re: [FFmpeg-devel] [PATCH 1/5] avcodec/lpc: copy levenson coeffs only when they have been computed
Date: Sun, 12 May 2024 02:13:06 +0200
Message-ID: <83bec738-e2dc-41a3-88af-a53ab6958628@lynne.ee> (raw)
In-Reply-To: <20240512000349.3381912-1-michael@niedermayer.cc>
On 12/05/2024 02:03, Michael Niedermayer wrote:
> Fixes: CID1473514 Uninitialized scalar variable
>
> Sponsored-by: Sovereign Tech Fund
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
> libavcodec/lpc.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
> index 8305cc0596a..981dacce8a5 100644
> --- a/libavcodec/lpc.c
> +++ b/libavcodec/lpc.c
> @@ -282,8 +282,9 @@ int ff_lpc_calc_coefs(LPCContext *s,
> double av_uninit(weight);
> memset(var, 0, FFALIGN(MAX_LPC_ORDER+1,4)*sizeof(*var));
>
> - for(j=0; j<max_order; j++)
> - m[0].coeff[max_order-1][j] = -lpc[max_order-1][j];
> + if (lpc_passes > 1)
> + for(j=0; j<max_order; j++)
> + m[0].coeff[max_order-1][j] = -lpc[max_order-1][j];
>
> for(; pass<lpc_passes; pass++){
> avpriv_init_lls(&m[pass&1], max_order);
max_order is a function argument, I don't think that's the right place
to fix this.
_______________________________________________
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".
next prev parent reply other threads:[~2024-05-12 0:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-12 0:03 Michael Niedermayer
2024-05-12 0:03 ` [FFmpeg-devel] [PATCH 2/5] avcodec/mpeg12dec: Use 64bit in bit computation Michael Niedermayer
2024-05-19 20:15 ` Michael Niedermayer
2024-05-12 0:03 ` [FFmpeg-devel] [PATCH 3/5] avcodec/mpeg4videodec: assert impossible wrap points Michael Niedermayer
2024-05-12 0:03 ` [FFmpeg-devel] [PATCH 4/5] avcodec/mpegvideo_enc: Fix potential overflow in RD Michael Niedermayer
2024-05-12 0:03 ` [FFmpeg-devel] [PATCH 5/5] avcodec/mscc & mwsc: Check loop counts before use Michael Niedermayer
2024-05-12 0:13 ` Lynne via ffmpeg-devel [this message]
2024-05-12 0:18 ` [FFmpeg-devel] [PATCH 1/5] avcodec/lpc: copy levenson coeffs only when they have been computed Michael Niedermayer
2024-05-12 0:29 ` Lynne via ffmpeg-devel
2024-05-13 1:25 ` Michael Niedermayer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83bec738-e2dc-41a3-88af-a53ab6958628@lynne.ee \
--to=ffmpeg-devel@ffmpeg.org \
--cc=dev@lynne.ee \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git