bad sequence header length while parsing ffmpeg's yuv4mpegpipe
Hello.
I've upgrading from ffmpeg-4.3.2 to ffmpeg-4.4 and discovered that new ffmpeg have started to add "XCOLORRANGE=LIMITED" at end of header. So the header looks like
YUV4MPEG2 W1280 H720 F30:1 Ip A1:1 C420mpeg2 XYSCSS=420MPEG2 XCOLORRANGE=LIMITED FRAME
and x264.exe now fails with
x264-r3053-c347e7a.exe --demuxer y4m --input-fmt yuv4mpegpipe --muxer mp4 --qp 0 --output R:\out.mp4 R:\1111
y4m [error]: bad sequence header length
x264 [error]: could not open input file `R:\1111'
mp4 [error]: failed to finish movie.
I searched that MAX_YUV4_HEADER define in https://code.videolan.org/videolan/x264/-/blob/master/input/y4m.c is limited to 80 symbols
input video is obtained via:
D:\libs\ffmpeg-4.4-full_build\bin\ffmpeg.exe -hide_banner -xerror -abort_on empty_output -loglevel warning -i "input video.mp4" -an -frames:v 2 -vsync passthrough -f yuv4mpegpipe -strict -1 - | D:\libs\ffmpeg-4.4-full_build\bin\ffmpeg.exe -hide_banner -xerror -abort_on empty_output -loglevel warning -f yuv4mpegpipe -i pipe: -vf scale=w=1280:h=720 -sws_flags lanczos -f yuv4mpegpipe -strict -1 - > r:\1111