Skip to content

Commit 410166d

Browse files
stsydowliuyang.marshall
authored andcommitted
examples : fix ffmpeg v5 build (ggml-org#2543)
remove call to 'av_register_all()' which does not exist in ffmpeg v5 anymore.
1 parent 235ef90 commit 410166d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

examples/ffmpeg-transcode.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,6 @@ static int decode_audio(struct audio_buffer *audio_buf, s16 **data, int *size)
204204
const size_t errbuffsize = 1024;
205205
char errbuff[errbuffsize];
206206

207-
av_register_all(); // from avformat. Still a must-have call for ffmpeg v3! (can be skipped for later versions)
208-
209207
fmt_ctx = avformat_alloc_context();
210208
avio_ctx_buffer = (u8*)av_malloc(AVIO_CTX_BUF_SZ);
211209
LOG("Creating an avio context: AVIO_CTX_BUF_SZ=%d\n", AVIO_CTX_BUF_SZ);

0 commit comments

Comments
 (0)