Use ffv1 if user requests it.

This commit is contained in:
Vlad Firoiu 2017-02-25 01:01:21 -08:00
parent a3af5b09d3
commit 8c24387509
1 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,8 @@ bool AVIDump::CreateVideoFile()
return false;
}
const AVCodecDescriptor* codec_desc = avcodec_descriptor_get_by_name(g_Config.sDumpCodec.c_str());
const std::string& codec_name = g_Config.bUseFFV1 ? "ffv1" : g_Config.sDumpCodec;
const AVCodecDescriptor* codec_desc = avcodec_descriptor_get_by_name(codec_name.c_str());
AVCodecID codec_id = codec_desc ? codec_desc->id : output_format->video_codec;
const AVCodec* codec = nullptr;