]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
examples : add FFmpeg v7.0 support to ffmpeg-transcode.cpp (#3038)
authorFujimoto Seiji <redacted>
Tue, 15 Apr 2025 04:09:00 +0000 (13:09 +0900)
committerGitHub <redacted>
Tue, 15 Apr 2025 04:09:00 +0000 (06:09 +0200)
commitf8a3509b6d4b4836ee0a3f648cbca65dcfd5b69e
tree81a1f1f170ca4d67cbf07520ab0509923e3c9b7e
parent2a2d21c75d069221a5dfd8828eed44a1699861a7
examples : add FFmpeg v7.0 support to ffmpeg-transcode.cpp (#3038)

FFmpeg introduced a new channel layout API that uses `AVChannelLayout`
interface in v6.0. It subsequently dropped the old bitmask-based API
in v7.0.

This updates decode_audio() to support the new channel layout API,
so that we can compile `whisper-cli` and `whisper-server` with FFmpeg
v7.0 or later.

Tested on on Ubuntu 24.10 with FFmpeg v7.0.2.

Signed-off-by: Fujimoto Seiji <redacted>
examples/ffmpeg-transcode.cpp