mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 21:40:03 +00:00
Merge branch 'fix-ffmpeg-api-const' into 'master'
Fix future FFMpeg API changes See merge request OpenMW/openmw!922
This commit is contained in:
commit
3794e6d4b2
@ -221,7 +221,7 @@ void FFmpeg_Decoder::open(const std::string &fname)
|
|||||||
if(!mStream)
|
if(!mStream)
|
||||||
throw std::runtime_error("No audio streams in "+fname);
|
throw std::runtime_error("No audio streams in "+fname);
|
||||||
|
|
||||||
AVCodec *codec = avcodec_find_decoder((*mStream)->codecpar->codec_id);
|
const AVCodec *codec = avcodec_find_decoder((*mStream)->codecpar->codec_id);
|
||||||
if(!codec)
|
if(!codec)
|
||||||
{
|
{
|
||||||
std::string ss = "No codec found for id " +
|
std::string ss = "No codec found for id " +
|
||||||
|
@ -71,7 +71,7 @@ MovieAudioDecoder::MovieAudioDecoder(VideoState* videoState)
|
|||||||
{
|
{
|
||||||
mAudioResampler.reset(new AudioResampler());
|
mAudioResampler.reset(new AudioResampler());
|
||||||
|
|
||||||
AVCodec *codec = avcodec_find_decoder(mAVStream->codecpar->codec_id);
|
const AVCodec *codec = avcodec_find_decoder(mAVStream->codecpar->codec_id);
|
||||||
if(!codec)
|
if(!codec)
|
||||||
{
|
{
|
||||||
std::string ss = "No codec found for id " +
|
std::string ss = "No codec found for id " +
|
||||||
|
2
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
2
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
@ -632,7 +632,7 @@ bool VideoState::update()
|
|||||||
|
|
||||||
int VideoState::stream_open(int stream_index, AVFormatContext *pFormatCtx)
|
int VideoState::stream_open(int stream_index, AVFormatContext *pFormatCtx)
|
||||||
{
|
{
|
||||||
AVCodec *codec;
|
const AVCodec *codec;
|
||||||
|
|
||||||
if(stream_index < 0 || stream_index >= static_cast<int>(pFormatCtx->nb_streams))
|
if(stream_index < 0 || stream_index >= static_cast<int>(pFormatCtx->nb_streams))
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user