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 build with ffmpeg 5.0 #934

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

berolinux
Copy link

Adapt to ffmpeg 5.0 requiring more const-ness for AVCodec.

Signed-off-by: Bernhard Rosenkränzer bero@lindev.ch

Adapt to ffmpeg 5.0 requiring more const-ness for AVCodec.

Signed-off-by: Bernhard Rosenkränzer <bero@lindev.ch>
@@ -194,7 +194,7 @@ unsigned int Muxer::GetQueuedPacketCount(unsigned int stream_index) {
void Muxer::Init() {

// get the format we want (this is just a pointer, we don't have to free this)
AVOutputFormat *format = av_guess_format(m_container_name.toUtf8().constData(), NULL, NULL);
const AVOutputFormat *format = av_guess_format(m_container_name.toUtf8().constData(), NULL, NULL);

Choose a reason for hiding this comment

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

This change breaks builds with ffmpeg 4.4. auto format = ... works, though.

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.

2 participants