From: Marton Balint <cus@passwd.hu> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH] avcodec/libxvid: add check for invalid intra/inter matrix values Date: Sat, 1 Feb 2025 21:16:23 +0100 (CET) Message-ID: <3c48f247-c85b-8b6d-b01d-f4385e56d82d@passwd.hu> (raw) In-Reply-To: <20250125195040.29621-1-cus@passwd.hu> On Sat, 25 Jan 2025, Marton Balint wrote: > Signed-off-by: Marton Balint <cus@passwd.hu> > --- > libavcodec/libxvid.c | 4 ++++ > 1 file changed, 4 insertions(+) Will apply. Regards, Marton > > diff --git a/libavcodec/libxvid.c b/libavcodec/libxvid.c > index fbd33b7065..850e691403 100644 > --- a/libavcodec/libxvid.c > +++ b/libavcodec/libxvid.c > @@ -617,6 +617,10 @@ static av_cold int xvid_encode_init(AVCodecContext *avctx) > x->intra_matrix = > x->inter_matrix = NULL; > > + ret = ff_check_codec_matrices(avctx, FF_MATRIX_TYPE_INTRA | FF_MATRIX_TYPE_INTER, 1, 255); > + if (ret < 0) > + return ret; > + > if (x->mpeg_quant) > x->vol_flags |= XVID_VOL_MPEGQUANT; > if ((avctx->intra_matrix || avctx->inter_matrix)) { > -- > 2.43.0 > > _______________________________________________ > 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". > _______________________________________________ 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".
prev parent reply other threads:[~2025-02-01 20:15 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-01-25 19:50 Marton Balint 2025-02-01 20:16 ` Marton Balint [this message]
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=3c48f247-c85b-8b6d-b01d-f4385e56d82d@passwd.hu \ --to=cus@passwd.hu \ --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