From 300c07b94deb2de0b679dd8eab58c67e54b4e4cb Mon Sep 17 00:00:00 2001 From: Stefan Sydow Date: Wed, 13 Nov 2024 20:41:52 +0100 Subject: [PATCH] examples : fix ffmpeg v5 build (#2543) remove call to 'av_register_all()' which does not exist in ffmpeg v5 anymore. --- examples/ffmpeg-transcode.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/ffmpeg-transcode.cpp b/examples/ffmpeg-transcode.cpp index f800db66..20f390de 100644 --- a/examples/ffmpeg-transcode.cpp +++ b/examples/ffmpeg-transcode.cpp @@ -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);