[FFmpeg-devel] [PATCH] libx264: Increase x264 opts character limit to 4096
Sasi Inguva
isasi at google.com
Fri Jul 22 04:52:41 EEST 2016
Signed-off-by: Sasi Inguva <isasi at google.com>
---
libavcodec/libx264.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index c8f2380..b730c91 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -777,8 +777,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
if(x4->x264opts){
const char *p= x4->x264opts;
while(p){
- char param[256]={0}, val[256]={0};
- if(sscanf(p, "%255[^:=]=%255[^:]", param, val) == 1){
+ char param[4096]={0}, val[4096]={0};
+ if(sscanf(p, "%4095[^:=]=%4095[^:]", param, val) == 1){
OPT_STR(param, "1");
}else
OPT_STR(param, val);
--
2.8.0.rc3.226.g39d4020
More information about the ffmpeg-devel
mailing list