diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index ee14fc33bc491804ce70af80f891863da3030d6a..0370068122e0f20dde82b9ae5a8fd9dd83e31b10 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -31,8 +31,8 @@
 
 #define MAX_FILTER_SIZE 256
 
-#define VOF  4096
 #define VOFW 2048
+#define VOF  (VOFW*2)
 
 typedef int (*SwsFunc)(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY,
              int srcSliceH, uint8_t* dst[], int dstStride[]);