Fixes for mod_av related to signalwire/freeswitch#2202 #2681
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is refactored from the patch listed in #2202 to guard against the exact library versions these changes occurred at.
The changes are as follows:
AVOutputFormat::priv_data_size
is marked private and no longer exists in the public API as of FFMPEG 6.0, but found hidden inAVOutputFormat
as part ofFFOutputFormat
.AVCodecContext::ticks_per_frame
was deprecated as of FFMPEG 6.1.avcodec_close()
' as of FFMPEG 3.1, useavcodec_free_context()
instead.AVFrame::key_frame
was deprecated as of FFMPEG 6.1, useAVFrame::flags
instead.AVInputFormat::read_seek
andAVInputFormat::read_seek2
no longer exists as of FFMPEG 7.0. This seems to only be used for logging purposes, so guard this functionality accordingly.