This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new f80addbb07 ffv1enc_vulkan: fix encoding with large contexts
f80addbb07 is described below
commit f80addbb07f43086e452b943e3a3dfe21dc63d74
Author: Lynne <[email protected]>
AuthorDate: Thu Dec 4 16:47:00 2025 +0100
Commit: Lynne <[email protected]>
CommitDate: Thu Dec 4 16:53:58 2025 +0100
ffv1enc_vulkan: fix encoding with large contexts
When RGB_LINECACHE == 2, then top2 is not the current line.
---
libavcodec/vulkan/ffv1_common.comp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/vulkan/ffv1_common.comp
b/libavcodec/vulkan/ffv1_common.comp
index 3d40592739..5f654e2b29 100644
--- a/libavcodec/vulkan/ffv1_common.comp
+++ b/libavcodec/vulkan/ffv1_common.comp
@@ -124,8 +124,12 @@ ivec2 get_pred(readonly uimage2D pred, ivec2 sp, ivec2 off,
}
base += quant_table[quant_table_idx][3][(cur2 - cur) &
MAX_QUANT_TABLE_MASK];
+#if RGB_LINECACHE == 2
/* top-2 became current upon swap */
TYPE top2 = TYPE(imageLoad(pred, sp + LADDR(off))[comp]);
+#else
+ TYPE top2 = TYPE(imageLoad(pred, sp + LADDR(off + ivec2(0,
-2)))[comp]);
+#endif
base += quant_table[quant_table_idx][4][(top2 - top[1]) &
MAX_QUANT_TABLE_MASK];
}
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]