Stefan Sydow commited on
Commit
88b342e
·
unverified ·
1 Parent(s): 96efeba

examples : fix ffmpeg v5 build (#2543)

Browse files

remove call to 'av_register_all()' which does not exist in ffmpeg v5
anymore.

Files changed (1) hide show
  1. examples/ffmpeg-transcode.cpp +0 -2
examples/ffmpeg-transcode.cpp CHANGED
@@ -204,8 +204,6 @@ static int decode_audio(struct audio_buffer *audio_buf, s16 **data, int *size)
204
  const size_t errbuffsize = 1024;
205
  char errbuff[errbuffsize];
206
 
207
- av_register_all(); // from avformat. Still a must-have call for ffmpeg v3! (can be skipped for later versions)
208
-
209
  fmt_ctx = avformat_alloc_context();
210
  avio_ctx_buffer = (u8*)av_malloc(AVIO_CTX_BUF_SZ);
211
  LOG("Creating an avio context: AVIO_CTX_BUF_SZ=%d\n", AVIO_CTX_BUF_SZ);
 
204
  const size_t errbuffsize = 1024;
205
  char errbuff[errbuffsize];
206
 
 
 
207
  fmt_ctx = avformat_alloc_context();
208
  avio_ctx_buffer = (u8*)av_malloc(AVIO_CTX_BUF_SZ);
209
  LOG("Creating an avio context: AVIO_CTX_BUF_SZ=%d\n", AVIO_CTX_BUF_SZ);