patriciogonzalezvivo / ada

A general porpose OpenGL app library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build with ffmpeg 4.0+

gnuille opened this issue · comments

On rolling release distributions ffmepg 4.0+ is distributed. The function avcodec_decode_video2 is deprecated therefore we are unable to build/use the program.

commented

Hi Gnuille,

I have made a pull request that should fix issues with ffmpeg 4.0

Thank you @spikanor11 !!! note that I have to remove the const to make it work on older versions. Do you mind to confirm if this still works for you? Other wise I think we could use LIBAVFORMAT_VERSION_MAJOR from libavformat/version.h to fork the behavior on newer versions

Upgrade my brew formulas, bump my ffmpeg up and I'm now needing to be const : )
Adding a quick fix following your lead @spikanor11 5f27199

Thanks again

commented

glad to be of help