[FFmpeg-cvslog] libxvid: Reduce the size of an array

Timothy Gu git at videolan.org
Mon Aug 5 18:18:16 CEST 2013


ffmpeg | branch: master | Timothy Gu <timothygu99 at gmail.com> | Tue Jul 30 19:42:32 2013 -0700| [3217a706e27c1fc1bfcb74b6eb8b20ae105e683c] | committer: Michael Niedermayer

libxvid: Reduce the size of an array

It is not possible to have a plugin[] array with 5 or more elements.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3217a706e27c1fc1bfcb74b6eb8b20ae105e683c
---

 libavcodec/libxvid.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libxvid.c b/libavcodec/libxvid.c
index 680ec6a..d2190c8 100644
--- a/libavcodec/libxvid.c
+++ b/libavcodec/libxvid.c
@@ -364,7 +364,7 @@ static av_cold int xvid_encode_init(AVCodecContext *avctx)  {
     xvid_plugin_ssim_t        ssim            = { 0 };
     xvid_gbl_init_t           xvid_gbl_init   = { 0 };
     xvid_enc_create_t         xvid_enc_create = { 0 };
-    xvid_enc_plugin_t         plugins[7];
+    xvid_enc_plugin_t         plugins[4];
 
     x->twopassfd = -1;
 



More information about the ffmpeg-cvslog mailing list