Skip to content

Commit

Permalink
examples : fix ffmpeg v5 build (#2543)
Browse files Browse the repository at this point in the history
remove call to 'av_register_all()' which does not exist in ffmpeg v5
anymore.
  • Loading branch information
stsydow authored Nov 13, 2024
1 parent 31aea56 commit 300c07b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/ffmpeg-transcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 300c07b

Please sign in to comment.