This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 5a6eeed9f0e375bde70c8e6c82fad58d8d06700c Author: Lynne <[email protected]> AuthorDate: Sat Mar 7 02:11:24 2026 +0100 Commit: Lynne <[email protected]> CommitDate: Sat Mar 7 15:14:25 2026 +0100 vulkan_ffv1: warn users on low number of slices Files with a low amount of slices take a considerably longer amount of time to decode. Experimentally, 16 seems to be a good safe minimum. --- libavcodec/vulkan_ffv1.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/vulkan_ffv1.c b/libavcodec/vulkan_ffv1.c index e807fe4de6..1ea927ccd3 100644 --- a/libavcodec/vulkan_ffv1.c +++ b/libavcodec/vulkan_ffv1.c @@ -750,6 +750,12 @@ static int vk_decode_ffv1_init(AVCodecContext *avctx) (f->version == 4 && f->micro_version > 3)) 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) + av_log(avctx, AV_LOG_WARNING, "Stream has a low number of slices (%i), " + "decoding may be very slow\n", f->slice_count); + err = ff_vk_decode_init(avctx); if (err < 0) return err; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
