[FFmpeg-devel] [PATCH 5/5] libxvid: Reduce the size of an array

Timothy Gu timothygu99 at gmail.com
Sun Jul 28 01:32:34 CEST 2013


It is not possible to have a plugin[] array with 4 or more elements.
---
 libavcodec/libxvid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libxvid.c b/libavcodec/libxvid.c
index 25896a0..b5ebef5 100644
--- a/libavcodec/libxvid.c
+++ b/libavcodec/libxvid.c
@@ -362,7 +362,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[3];
 
     x->twopassfd = -1;
 
-- 
1.8.1.2



More information about the ffmpeg-devel mailing list