[FFmpeg-cvslog] snowenc: get rid of VLA (well it wasnt really variable anyway)

Michael Niedermayer git at videolan.org
Sat Oct 6 14:07:16 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct  6 13:59:35 2012 +0200| [56d7f7d955826959b2d3b97d6ef352b7917c98ea] | committer: Michael Niedermayer

snowenc: get rid of VLA (well it wasnt really variable anyway)

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

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

 libavcodec/snowenc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c
index b1377ca..ca422ca 100644
--- a/libavcodec/snowenc.c
+++ b/libavcodec/snowenc.c
@@ -1964,8 +1964,8 @@ AVCodec ff_snow_encoder = {
 #include "libavutil/mathematics.h"
 
 int main(void){
-    int width=256;
-    int height=256;
+#define width  256
+#define height 256
     int buffer[2][width*height];
     SnowContext s;
     int i;



More information about the ffmpeg-cvslog mailing list