Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH 7/9] avcodec/vvc/mvs: Initialize mvf
Date: Sun, 19 May 2024 21:40:38 +0200
Message-ID: <20240519194038.GJ2821752@pb2> (raw)
In-Reply-To: <CAFXK13c+Gg0ZjPWBrFVEh8xbszwjcFfTp-nZVpUjsmQdpTju0g@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1831 bytes --]

On Sun, May 19, 2024 at 10:28:49PM +0800, Nuo Mi wrote:
> On Sun, May 19, 2024 at 10:50 AM Michael Niedermayer <michael@niedermayer.cc>
> wrote:
> 
> > This might not be needed for correctness but it could
> > help general reproducability of issues
> >
> > Related to: CID1560037 Uninitialized scalar variable
> > Related to: CID1560044 Uninitialized scalar variable
> >
> > Sponsored-by: Sovereign Tech Fund
> > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> > ---
> >  libavcodec/vvc/mvs.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/libavcodec/vvc/mvs.c b/libavcodec/vvc/mvs.c
> > index fe7d9234603..521cf96a896 100644
> > --- a/libavcodec/vvc/mvs.c
> > +++ b/libavcodec/vvc/mvs.c
> > @@ -411,7 +411,7 @@ void ff_vvc_store_sb_mvs(const VVCLocalContext *lc,
> > PredictionUnit *pu)
> >      const int sbw = cu->cb_width / mi->num_sb_x;
> >      const int sbh = cu->cb_height / mi->num_sb_y;
> >      SubblockParams params[2];
> > -    MvField mvf;
> > +    MvField mvf = {0};
> >
> >      mvf.pred_flag = mi->pred_flag;
> >      mvf.bcw_idx = mi->bcw_idx;
> > @@ -504,7 +504,7 @@ void ff_vvc_store_mvf(const VVCLocalContext *lc, const
> > MvField *mvf)
> >  void ff_vvc_store_mv(const VVCLocalContext *lc, const MotionInfo *mi)
> >  {
> >      const CodingUnit *cu = lc->cu;
> > -    MvField mvf;
> > +    MvField mvf = {0};
> >
> >      mvf.hpel_if_idx = mi->hpel_if_idx;
> >      mvf.bcw_idx = mi->bcw_idx;
> > --
> > 2.45.1
> >
> both  "mvf.ciip_flag = 0" are not needed if we set mvf to 0

locally changed

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
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".

  reply	other threads:[~2024-05-19 19:40 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-19  2:49 [FFmpeg-devel] [PATCH 1/9] avcodec/vqcdec: Check init_get_bits8() for failure Michael Niedermayer
2024-05-19  2:49 ` [FFmpeg-devel] [PATCH 2/9] avcodec/vvc/ctu: Simplify code at the end of pred_mode_decode() Michael Niedermayer
2024-07-12 21:24   ` Michael Niedermayer
2024-07-13  2:06   ` Nuo Mi
2024-05-19  2:49 ` [FFmpeg-devel] [PATCH 3/9] avcodec/vvc/ctu: Simplify pred_mode_plt_flag Michael Niedermayer
2024-05-19 14:40   ` Nuo Mi
2024-05-19 19:27     ` Michael Niedermayer
2024-05-19  2:49 ` [FFmpeg-devel] [PATCH 4/9] avcodec/vvc/ctu: Remove dead ret check Michael Niedermayer
2024-07-02 18:35   ` Michael Niedermayer
2024-07-03 12:44     ` Nuo Mi
2024-05-19  2:49 ` [FFmpeg-devel] [PATCH 5/9] avcodec/vvc/dec: Remove constant eos_at_start Michael Niedermayer
2024-07-02 18:34   ` Michael Niedermayer
2024-07-03 12:44     ` Nuo Mi
2024-05-19  2:49 ` [FFmpeg-devel] [PATCH 6/9] avcodec/vvc/dec: Check init_get_bits8() for failure Michael Niedermayer
2024-05-19 14:31   ` Nuo Mi
2024-05-19 19:39     ` Michael Niedermayer
2024-05-19  2:49 ` [FFmpeg-devel] [PATCH 7/9] avcodec/vvc/mvs: Initialize mvf Michael Niedermayer
2024-05-19 14:28   ` Nuo Mi
2024-05-19 19:40     ` Michael Niedermayer [this message]
2024-05-19  2:49 ` [FFmpeg-devel] [PATCH 8/9] avcodec/wavpack: Remove dead assignments Michael Niedermayer
2024-05-19  2:49 ` [FFmpeg-devel] [PATCH 9/9] avcodec/wavpackenc: Use unsigned for potential 31bit shift Michael Niedermayer
2024-06-02 19:08   ` Michael Niedermayer
2024-05-19  3:18 ` [FFmpeg-devel] [PATCH 1/9] avcodec/vqcdec: Check init_get_bits8() for failure Peter Ross
2024-05-19 19:37   ` 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=20240519194038.GJ2821752@pb2 \
    --to=michael@niedermayer.cc \
    --cc=ffmpeg-devel@ffmpeg.org \
    /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