yuv: Support 4GB+ YUV files for output

--HG--
branch : stable
Merge with stable