Fixed invalid AVI header flags

Videos should now play in Windows Media Player. I believe the previous flags were wrong, as 0x1 doesn't seem to be a valid flag (see, for instance: https://ffmpeg.org/doxygen/0.6/avi_8h.html).
This commit is contained in:
Stephen Hill 2015-11-30 21:16:11 -05:00
parent 87d3501ded
commit 29782ca333

View file

@ -63,7 +63,7 @@ struct AviWriter
bx::write(m_writer, UINT32_C(0) ); // dwMicroSecPerFrame bx::write(m_writer, UINT32_C(0) ); // dwMicroSecPerFrame
bx::write(m_writer, UINT32_C(0) ); // dwMaxBytesPerSec bx::write(m_writer, UINT32_C(0) ); // dwMaxBytesPerSec
bx::write(m_writer, UINT32_C(0) ); // dwPaddingGranularity bx::write(m_writer, UINT32_C(0) ); // dwPaddingGranularity
bx::write(m_writer, UINT32_C(0x101) ); // dwFlags bx::write(m_writer, UINT32_C(0x110) ); // dwFlags
m_totalFramesOffset = m_writer->seek(); m_totalFramesOffset = m_writer->seek();
bx::write(m_writer, UINT32_C(0) ); // dwTotalFrames bx::write(m_writer, UINT32_C(0) ); // dwTotalFrames