XVID FourCC for MPEG-4 codecs.
This commit is contained in:
parent
d4686aa1a7
commit
a1a9e488a5
|
@ -140,9 +140,10 @@ bool AVIDump::CreateVideoFile()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!g_Config.bUseFFV1)
|
// Force XVID FourCC for better compatibility
|
||||||
s_codec_context->codec_tag =
|
if (codec->id == AV_CODEC_ID_MPEG4)
|
||||||
MKTAG('X', 'V', 'I', 'D'); // Force XVID FourCC for better compatibility
|
s_codec_context->codec_tag = MKTAG('X', 'V', 'I', 'D');
|
||||||
|
|
||||||
s_codec_context->codec_type = AVMEDIA_TYPE_VIDEO;
|
s_codec_context->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||||
s_codec_context->bit_rate = g_Config.iBitrateKbps * 1000;
|
s_codec_context->bit_rate = g_Config.iBitrateKbps * 1000;
|
||||||
s_codec_context->width = s_width;
|
s_codec_context->width = s_width;
|
||||||
|
|
Loading…
Reference in New Issue