• Reinhard Tartler's avatar
    Open 2-pass logfile in binary mode for both reading and writing. · a22222da
    Reinhard Tartler authored
    This fixes a regression on Windows introduced by r22769 in which the data read
    from the file was not properly zero terminated. The file was read as text,
    which caused the \r characters to be suppressed. Since the zero termination
    happens at the end of the buffer, and there was one byte less read per line,
    this caused the remaining space on the buffer to contain random data.
    
    
    backport r23251 by ramiro
    
    
    Originally committed as revision 23261 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6
    a22222da