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