Skip to content

Add support for building with ffmpeg 9 - #56

Open
PlutoTramble wants to merge 1 commit into
fstark:mainfrom
PlutoTramble:Add_support_for_ffmpeg9
Open

PlutoTramble wants to merge 1 commit into
fstark:mainfrom
PlutoTramble:Add_support_for_ffmpeg9

Conversation

@PlutoTramble

Copy link
Copy Markdown

This is a small PR is to add support for ffmpeg 9.

There's a deprecation when switching from 8 to 9, which we can't access codec->sample_fmts directly.
https://ffmpeg.org/doxygen/8.1/deprecated.html

However, we can call avcodec_get_supported_config to get the AVSampleFormat.

Don't hesitate to let me know if you'd like me to change anything!

How it has been tested :

  1. Used a breakpoint to ensure that p is properly pointed.
image

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