[FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: increase header limit

Gyan Doshi ffmpeg at gyani.pro
Sun Jan 26 17:24:38 EET 2020


Allows demuxing UHD 30000/1001 fps yuvj420p files
---
 libavformat/yuv4mpegdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/yuv4mpegdec.c b/libavformat/yuv4mpegdec.c
index d7b472e6c7..ccd3da1af8 100644
--- a/libavformat/yuv4mpegdec.c
+++ b/libavformat/yuv4mpegdec.c
@@ -26,7 +26,7 @@
 #include "yuv4mpeg.h"
 
 /* Header size increased to allow room for optional flags */
-#define MAX_YUV4_HEADER 80
+#define MAX_YUV4_HEADER 96
 #define MAX_FRAME_HEADER 80
 
 static int yuv4_read_header(AVFormatContext *s)
-- 
2.24.1



More information about the ffmpeg-devel mailing list