This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit b27f276bdd1ec490c67bc9bfeaa8bef113a9f2f4 Author: Lynne <[email protected]> AuthorDate: Sun Jul 12 18:28:45 2026 +0900 Commit: Lynne <[email protected]> CommitDate: Sun Aug 2 22:11:27 2026 +0900 vulkan_ffv1: use the extradata slice structure in the low-slice-count warning slice_count is only set while decoding a frame, so the warning always printed a slice count of 0 at init time, and fired on streams with plenty of slices. --- libavcodec/vulkan_ffv1.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavcodec/vulkan_ffv1.c b/libavcodec/vulkan_ffv1.c index d3d1f3b5de..d9a6aa1e3a 100644 --- a/libavcodec/vulkan_ffv1.c +++ b/libavcodec/vulkan_ffv1.c @@ -852,10 +852,11 @@ static int vk_decode_ffv1_init(AVCodecContext *avctx) return AVERROR(ENOTSUP); /* Streams with a low amount of slices will usually be much slower - * to decode, so warn the user. */ - if (f->slice_count < 16) + * to decode, so warn the user. Use the slice structure from the + * extradata: slice_count is only set during frame decoding. */ + if (f->num_h_slices * f->num_v_slices < 16) av_log(avctx, AV_LOG_WARNING, "Stream has a low number of slices (%i), " - "decoding may be very slow\n", f->slice_count); + "decoding may be very slow\n", f->num_h_slices * f->num_v_slices); err = ff_vk_decode_init(avctx); if (err < 0) _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
