1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-13 08:06:32 +01:00

FFmpeg: Replace long deprecated functions by current ones.

This commit is contained in:
benjamin.drung@gmail.com
2014-05-31 14:01:57 +00:00
parent 3416b2a8c1
commit 4d4580a042
5 changed files with 12 additions and 32 deletions

View File

@@ -369,14 +369,10 @@ bool FFmpegImportFileHandle::Init()
return false;
}
#if !defined(DISABLE_DYNAMIC_LOADING_FFMPEG) || (LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(53, 3, 0))
err = av_find_stream_info(mFormatContext);
#else
err = avformat_find_stream_info(mFormatContext, NULL);
#endif
if (err < 0)
{
wxLogError(wxT("FFmpeg : av_find_stream_info() failed for file %s"),mName.c_str());
wxLogError(wxT("FFmpeg: avformat_find_stream_info() failed for file %s"),mName.c_str());
return false;
}