mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-04 09:39:42 +02:00
Rename 64 bit ffmpeg libs.
Also change the prompting to suggest the new/expected name.
This commit is contained in:
parent
c912b13747
commit
1d40f33eba
@ -591,16 +591,17 @@ bool FFmpegLibs::FindLibs(wxWindow *parent)
|
||||
wxString path;
|
||||
wxString name;
|
||||
|
||||
// If we're looking for the lib, use the standard name, as the
|
||||
// configured name is not found.
|
||||
name = GetLibAVFormatName();
|
||||
wxLogMessage(wxT("Looking for FFmpeg libraries..."));
|
||||
if (!mLibAVFormatPath.IsEmpty()) {
|
||||
wxLogMessage(wxT("mLibAVFormatPath ('%s') is not empty."), mLibAVFormatPath);
|
||||
const wxFileName fn{ mLibAVFormatPath };
|
||||
path = fn.GetPath();
|
||||
name = fn.GetFullName();
|
||||
}
|
||||
else {
|
||||
path = GetLibAVFormatPath();
|
||||
name = GetLibAVFormatName();
|
||||
wxLogMessage(wxT("mLibAVFormatPath is empty, starting with path '%s', name '%s'."),
|
||||
path, name);
|
||||
}
|
||||
|
@ -332,16 +332,22 @@ public:
|
||||
|
||||
wxString GetLibAVFormatName()
|
||||
{
|
||||
if (sizeof(void*) == 8)
|
||||
return (wxT("ffmpeg.") wxT(AV_STRINGIFY(LIBAVFORMAT_VERSION_MAJOR)) wxT(".64bit.dylib"));
|
||||
return (wxT("libavformat.") wxT(AV_STRINGIFY(LIBAVFORMAT_VERSION_MAJOR)) wxT(".dylib"));
|
||||
}
|
||||
|
||||
wxString GetLibAVCodecName()
|
||||
{
|
||||
if (sizeof(void*) == 8)
|
||||
return (wxT("ffmpeg_codecs.") wxT(AV_STRINGIFY(LIBAVCODEC_VERSION_MAJOR)) wxT(".64bit.dylib"));
|
||||
return (wxT("libavcodec.") wxT(AV_STRINGIFY(LIBAVCODEC_VERSION_MAJOR)) wxT(".dylib"));
|
||||
}
|
||||
|
||||
wxString GetLibAVUtilName()
|
||||
{
|
||||
if (sizeof(void*) == 8)
|
||||
return (wxT("ffmpeg_utils.") wxT(AV_STRINGIFY(LIBAVUTIL_VERSION_MAJOR)) wxT(".64bit.dylib"));
|
||||
return (wxT("libavutil.") wxT(AV_STRINGIFY(LIBAVUTIL_VERSION_MAJOR)) wxT(".dylib"));
|
||||
}
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user