Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ffmpeg v5 build #2543

Merged
merged 1 commit into from
Nov 13, 2024
Merged

fix ffmpeg v5 build #2543

merged 1 commit into from
Nov 13, 2024

Conversation

stsydow
Copy link
Contributor

@stsydow stsydow commented Nov 8, 2024

Remove call to av_register_all() from the transcode example,
which does not exist in ffmpeg v5 anymore.

This will break ffmpeg v3, if this needs to be supported still, we need a different approach.

remove call to 'av_register_all()' which does not exist in ffmpeg v5
anymore.
@ggerganov ggerganov merged commit 300c07b into ggerganov:master Nov 13, 2024
44 checks passed
adutilleul pushed a commit to adutilleul/whisper.cpp that referenced this pull request Nov 19, 2024
remove call to 'av_register_all()' which does not exist in ffmpeg v5
anymore.
Copy link
Contributor

@WilliamTambellini WilliamTambellini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-1

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

naive and bad modif: breaks the ffmpeg v3 build.
Proper modif should have been:
#ifdef FFMPEG_VERSION < 5
av_register_all();
#endif

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want this to happen just do a PR with:

#ifdef FFMPEG_VERSION < 4
av_register_all();
#endif

In anyway this is an example for the current state and meant to be simple.

I find the tone quite harsh and not inviting for help.
The caveat for ffmpeg 3.0 was clearly mentioned in the description though.
The call is deprecated since ffmpeg 4.0 in 2018.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants