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

Remove deprecared/unneeded avcodec_close() #342

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

Conversation

Pleune
Copy link

@Pleune Pleune commented Aug 23, 2024

From docs see that this function call is not needed:

"Do not use this function. Use avcodec_free_context() to destroy a codec context (either open or closed). Opening and closing a codec context multiple times is not supported anymore – use multiple codec contexts instead."

avcodec_free_context is already called.

Fixes error: ‘int avcodec_close(AVCodecContext*)’ is deprecated [-Werror=deprecated-declarations] for my builds.

From [docs](https://ffmpeg.org/doxygen/trunk/deprecated.html) see that
this function call is not needed:

"Do not use this function. Use avcodec_free_context() to destroy a codec
context (either open or closed). Opening and closing a codec context
multiple times is not supported anymore – use multiple codec contexts instead."

avcodec_free_context is already called.
@flynneva flynneva self-requested a review August 26, 2024 01:41
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.

1 participant