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 ESMTPS id 5003B4BBED for ; Sat, 1 Feb 2025 20:15:54 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8239268BFB2; Sat, 1 Feb 2025 22:15:50 +0200 (EET) Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2435868B837 for ; Sat, 1 Feb 2025 22:15:44 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 41A50EB237 for ; Sat, 1 Feb 2025 21:16:26 +0100 (CET) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12xbD5ls5qNL for ; Sat, 1 Feb 2025 21:16:23 +0100 (CET) Received: from iq (iq [217.27.212.140]) by iq.passwd.hu (Postfix) with ESMTPS id 1DA99EB236 for ; Sat, 1 Feb 2025 21:16:23 +0100 (CET) Date: Sat, 1 Feb 2025 21:16:23 +0100 (CET) From: Marton Balint To: FFmpeg development discussions and patches In-Reply-To: <20250125195040.29621-1-cus@passwd.hu> Message-ID: <3c48f247-c85b-8b6d-b01d-f4385e56d82d@passwd.hu> References: <20250125195040.29621-1-cus@passwd.hu> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH] avcodec/libxvid: add check for invalid intra/inter matrix values 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Sat, 25 Jan 2025, Marton Balint wrote: > Signed-off-by: Marton Balint > --- > 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".