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

Build fails against FFmpeg 4.4.2+; cannot initialize a variable of type 'AVCodec *' with an rvalue of type 'const AVCodec *' | Depreciated function removal #72

Open
EndlessEden opened this issue Nov 12, 2021 · 4 comments

Comments

@EndlessEden
Copy link

EndlessEden commented Nov 12, 2021

Attempting to build against FFmpeg (4.4.1-9fd2b39428) fails.

In member function ‘virtual int32_t webrtc::H264DecoderImpl::InitDecode(const webrtc::VideoCodec*, int32_t)’:
src/modules/video_coding/codecs/h264/h264_decoder_impl.cc:205:40: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]

@EndlessEden EndlessEden changed the title Build fails against FFmpeg 4.4.1-g9fd2b39428; cannot initialize a variable of type 'AVCodec *' with an rvalue of type 'const AVCodec *' Build fails against FFmpeg 4.4.1-9fd2b39428; cannot initialize a variable of type 'AVCodec *' with an rvalue of type 'const AVCodec *' Nov 12, 2021
@EndlessEden
Copy link
Author

commit version in reference: FFmpeg/FFmpeg@9fd2b39428

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Nov 28, 2021

I have no problem with 4.4 release version of ffmpeg, the commit you provided is on master

@EndlessEden EndlessEden changed the title Build fails against FFmpeg 4.4.1-9fd2b39428; cannot initialize a variable of type 'AVCodec *' with an rvalue of type 'const AVCodec *' Build fails against FFmpeg 4.4.2+; cannot initialize a variable of type 'AVCodec *' with an rvalue of type 'const AVCodec *' | Depreciated function removal Dec 14, 2021
@EndlessEden
Copy link
Author

Sorry, million other things im catching up on.

Yes, im using master, the depreciated api calls that were depreciated back in ffmpeg-3.1 are being removed in the next release (coming afaik in Q1-2022, so rather soon).

My projects that rely on tg_owt will be non-functional soon, and i submitted this bug request pre-emptively before the release.

None of the issues this bug request is relative to unstable api changes in 4.4.2+, but rather depreciation from 3.1-4.0 that are now officially removed for next version.

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Dec 14, 2021

Well, no development happens in this repo, this repo provides cmake files for the Google WebRTC library. If your bug is related to the code, you should report it upstream, not here.

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

No branches or pull requests

2 participants