From 29782ca333cfc667dae1c7289f5f0fcf512e4edd Mon Sep 17 00:00:00 2001 From: Stephen Hill Date: Mon, 30 Nov 2015 21:16:11 -0500 Subject: [PATCH] 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). --- examples/common/aviwriter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common/aviwriter.h b/examples/common/aviwriter.h index df9ae357..93c86291 100644 --- a/examples/common/aviwriter.h +++ b/examples/common/aviwriter.h @@ -63,7 +63,7 @@ struct AviWriter bx::write(m_writer, UINT32_C(0) ); // dwMicroSecPerFrame bx::write(m_writer, UINT32_C(0) ); // dwMaxBytesPerSec 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(); bx::write(m_writer, UINT32_C(0) ); // dwTotalFrames