use encoder, not decoder, and add to mpeg4

This commit is contained in:
Cobalt Space
2021-10-22 15:35:03 -07:00
parent b9766bf585
commit 8a91932889
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ QStringList FFmpegEncoder::GetPixelFormatsForCodec(ExportCodec::Codec c) const
codec_info = avcodec_find_encoder(AV_CODEC_ID_H264);
break;
case ExportCodec::kCodecH264rgb:
codec_info = avcodec_find_decoder_by_name("libx264rgb");
codec_info = avcodec_find_encoder_by_name("libx264rgb");
break;
case ExportCodec::kCodecDNxHD:
codec_info = avcodec_find_encoder(AV_CODEC_ID_DNXHD);