From 816aa063a0a8b7d5c9d3e092edc587c2cc9e4289 Mon Sep 17 00:00:00 2001 From: Joshua Peter Ebenezer Date: Fri, 13 Aug 2021 14:12:31 -0700 Subject: [PATCH] Create y4m_input.c --- tools/y4m_input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/y4m_input.c b/tools/y4m_input.c index 0f965478..1f88aa57 100644 --- a/tools/y4m_input.c +++ b/tools/y4m_input.c @@ -560,14 +560,15 @@ static void y4m_convert_null(y4m_input *_y4m,unsigned char *_dst, (void)_dst; (void)_aux; } +#define Y4M_HEADER_BUFSIZE 256 static int y4m_input_open_impl(y4m_input *_y4m,FILE *_fin){ - char buffer[80]; + char buffer[Y4M_HEADER_BUFSIZE]; int ret; int i; int xstride; /*Read until newline, or 80 cols, whichever happens first.*/ - for(i=0;i<79;i++){ + for(i=0;i