History

ffv1enc_vulkan: clip micro_version to 3 for level 4

This unbreaks level 4 encoding.

Lynne committed 1 year ago

Commit dd7cc551 parent b2ebe981 file · +4 −0Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/ffv1enc_vulkan.c+4−0
@@ -1398,6 +1398,10 @@ static av_cold int vulkan_encode_ffv1_init(AVCodecContext *avctx) · 1397 unmodified lines
13981398 return AVERROR_INVALIDDATA;
13991399 }
14001400
1401+ /* We target version 4.3 */
1402+ if (f->version == 4 && f->micro_version > 4)
1403+ f->micro_version = 3;
1404+
14011405 //if (fv->ctx.ac == AC_GOLOMB_RICE) {
14021406 if (0) {
14031407 int w_a = FFALIGN(avctx->width, LG_ALIGN_W);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t