diff options
| author | Vlad Firoiu <vladfi2@gmail.com> | 2017-02-21 10:06:46 -0800 |
|---|---|---|
| committer | Vlad Firoiu <vladfi2@gmail.com> | 2017-02-27 23:44:33 -0800 |
| commit | a1a9e488a556ffa4763336711e7726eb7eb92f15 (patch) | |
| tree | b548b608919e81d7400bf4feb63b940d725cbc01 /Source/Core/VideoCommon/AVIDump.cpp | |
| parent | d4686aa1a7c312458a752b817804f398103b932d (diff) | |
XVID FourCC for MPEG-4 codecs.
Diffstat (limited to 'Source/Core/VideoCommon/AVIDump.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/AVIDump.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/AVIDump.cpp b/Source/Core/VideoCommon/AVIDump.cpp index a2781be3f8..ef9ccaeed4 100644 --- a/Source/Core/VideoCommon/AVIDump.cpp +++ b/Source/Core/VideoCommon/AVIDump.cpp @@ -140,9 +140,10 @@ bool AVIDump::CreateVideoFile() return false; } - if (!g_Config.bUseFFV1) - s_codec_context->codec_tag = - MKTAG('X', 'V', 'I', 'D'); // Force XVID FourCC for better compatibility + // Force XVID FourCC for better compatibility + if (codec->id == AV_CODEC_ID_MPEG4) + s_codec_context->codec_tag = MKTAG('X', 'V', 'I', 'D'); + s_codec_context->codec_type = AVMEDIA_TYPE_VIDEO; s_codec_context->bit_rate = g_Config.iBitrateKbps * 1000; s_codec_context->width = s_width; |
