multimedia/ffms2: unbreak with ffmpeg 5.0
src/core/videosource.cpp:174:18: error: cannot initialize a variable of type
'AVCodec *' with an rvalue of type 'const AVCodec *'
AVCodec *Codec =
avcodec_find_decoder(FormatContext->streams[VideoTrack]->codecpar->codec_id);
^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/audiosource.cpp:466:14: error: cannot initialize a variable of type
'AVCodec *' with an rvalue of type 'const AVCodec *'
AVCodec *Codec =
avcodec_find_decoder(FormatContext->streams[TrackNumber]->codecpar->codec_id);
^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/indexing.cpp:387:14: error: cannot initialize a variable of type
'AVCodec *' with an rvalue of type 'const AVCodec *'
AVCodec *codec =
avcodec_find_decoder(FormatContext->streams[Track]->codecpar->codec_id);
^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/indexing.cpp:405:22: error: cannot initialize a variable of type
'AVCodec *' with an rvalue of type 'const AVCodec *'
AVCodec *VideoCodec =
avcodec_find_decoder(FormatContext->streams[i]->codecpar->codec_id);
^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/indexing.cpp:436:22: error: cannot initialize a variable of type
'AVCodec *' with an rvalue of type 'const AVCodec *'
AVCodec *AudioCodec =
avcodec_find_decoder(FormatContext->streams[i]->codecpar->codec_id);
^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PR: 270226
Obtained from: upstream
multimedia/ffms2: add new port
FFmpegSource (usually known as FFMS or FFMS2) is a cross-platform
wrapper library around FFmpeg/libav. It gives you an easy, convenient
way to say "open and decompress this media file for me, I don't care
how you do it" and get frame- and sample-accurate access (usually),
without having to bother with the sometimes less than straightforward
and less than perfectly documented libav API.
https://github.com/FFMS/ffms2