Added ffmpeg library version to list of open source dependencies on the Qt About Fceux window.

This commit is contained in:
mjbudd77 2021-10-05 20:19:06 -04:00
parent 527fa3901b
commit b3f182d91d
2 changed files with 35 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <string> #include <string>
#include <unzip.h>
#ifdef _S9XLUA_H #ifdef _S9XLUA_H
#include <lua.h> #include <lua.h>
@ -32,6 +33,20 @@
#include "x264.h" #include "x264.h"
#endif #endif
#ifdef _USE_LIBAV
#ifdef __cplusplus
extern "C"
{
#include "libavutil/version.h"
#include "libavformat/version.h"
#include "libavcodec/version.h"
#include "libswscale/version.h"
#include "libswresample/version.h"
}
#endif
#endif
#include <QPixmap> #include <QPixmap>
#include <QUrl> #include <QUrl>
#include <QTextEdit> #include <QTextEdit>
@ -181,11 +196,31 @@ AboutWindow::AboutWindow(QWidget *parent)
sprintf( stmp, " Linked with SDL version %d.%d.%d\n", v.major, v.minor, v.patch); sprintf( stmp, " Linked with SDL version %d.%d.%d\n", v.major, v.minor, v.patch);
credits->insertPlainText( stmp ); credits->insertPlainText( stmp );
#ifdef ZLIB_VERSION
sprintf( stmp, " Compiled with zlib %s\n", ZLIB_VERSION );
credits->insertPlainText( stmp );
#endif
#ifdef _S9XLUA_H #ifdef _S9XLUA_H
sprintf( stmp, " Compiled with %s\n", LUA_RELEASE ); sprintf( stmp, " Compiled with %s\n", LUA_RELEASE );
credits->insertPlainText( stmp ); credits->insertPlainText( stmp );
#endif #endif
#ifdef _USE_LIBAV
sprintf( stmp, " Compiled with ffmpeg libraries:\n");
credits->insertPlainText( stmp );
sprintf( stmp, " libavutil %i.%i.%i\n", LIBAVUTIL_VERSION_MAJOR, LIBAVUTIL_VERSION_MINOR, LIBAVUTIL_VERSION_MICRO);
credits->insertPlainText( stmp );
sprintf( stmp, " libavformat %i.%i.%i\n", LIBAVFORMAT_VERSION_MAJOR, LIBAVFORMAT_VERSION_MINOR, LIBAVFORMAT_VERSION_MICRO);
credits->insertPlainText( stmp );
sprintf( stmp, " libavcodec %i.%i.%i\n", LIBAVCODEC_VERSION_MAJOR, LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MICRO);
credits->insertPlainText( stmp );
sprintf( stmp, " libswscale %i.%i.%i\n", LIBSWSCALE_VERSION_MAJOR, LIBSWSCALE_VERSION_MINOR, LIBSWSCALE_VERSION_MICRO);
credits->insertPlainText( stmp );
sprintf( stmp, " libswresample %i.%i.%i\n", LIBSWRESAMPLE_VERSION_MAJOR, LIBSWRESAMPLE_VERSION_MINOR, LIBSWRESAMPLE_VERSION_MICRO);
credits->insertPlainText( stmp );
#endif
#ifdef _USE_X264 #ifdef _USE_X264
sprintf( stmp, " Compiled with x264 version %s\n", X264_POINTVER ); sprintf( stmp, " Compiled with x264 version %s\n", X264_POINTVER );
credits->insertPlainText( stmp ); credits->insertPlainText( stmp );

View File

@ -59,7 +59,6 @@ extern "C"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"
#include "libavformat/avformat.h" #include "libavformat/avformat.h"
#include "libavcodec/avcodec.h" #include "libavcodec/avcodec.h"
//#include "libavresample/avresample.h"
#include "libswscale/swscale.h" #include "libswscale/swscale.h"
#include "libswresample/swresample.h" #include "libswresample/swresample.h"
} }