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 compatibility with FFmpeg 5.0 #3195

Merged
merged 1 commit into from
May 25, 2022
Merged

Conversation

traversaro
Copy link
Collaborator

@traversaro traversaro commented Mar 20, 2022

Partial backport of:

to Classic Gazebo.

With respect to gazebosim/gz-common#325, I noticed a strange behaviour for which the avcodec_parameters_to_context function that in https://github.com/osrf/gazebo/pull/3195/files#diff-08c8dfc0ffe4733c2fcc1ebd0e3f67032e24b302b25a90c26e87994582503198R326 was not copying the members of the AVCodecParameters structure to the AVCodecContext structure. I was not able to understand why that happened, but copying the members manually worked fine, however it is probably worth to check that the tests work fine on another setup by commenting out https://github.com/osrf/gazebo/pull/3195/files#diff-08c8dfc0ffe4733c2fcc1ebd0e3f67032e24b302b25a90c26e87994582503198R334-R348 .

@scpeters
Copy link
Member

thank you so much for fixing this in both ign-common and here in gazebo!

I still see two deprecation warnings for av_init_packet in Video.cc and VideoEncoder.cc, but we can address those another day

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.

None yet

2 participants