]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
examples : fix ffmpeg v5 build (#2543)
authorStefan Sydow <redacted>
Wed, 13 Nov 2024 19:41:52 +0000 (20:41 +0100)
committerGitHub <redacted>
Wed, 13 Nov 2024 19:41:52 +0000 (21:41 +0200)
remove call to 'av_register_all()' which does not exist in ffmpeg v5
anymore.

examples/ffmpeg-transcode.cpp

index f800db66d55e08e6c0678970f19dd6cc64c69e6c..20f390dede58e4f22c6334f5f4f5ca75d567c55c 100644 (file)
@@ -204,8 +204,6 @@ static int decode_audio(struct audio_buffer *audio_buf, s16 **data, int *size)
     const size_t errbuffsize = 1024;
     char errbuff[errbuffsize];
 
-    av_register_all(); // from avformat. Still a must-have call for ffmpeg v3! (can be skipped for later versions)
-
     fmt_ctx = avformat_alloc_context();
     avio_ctx_buffer = (u8*)av_malloc(AVIO_CTX_BUF_SZ);
     LOG("Creating an avio context: AVIO_CTX_BUF_SZ=%d\n", AVIO_CTX_BUF_SZ);