mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-08-27 04:37:41 +00:00
Revert "Make h264bitstream dependency optional"
This reverts commit 2328713f4e.
This commit is contained in:
@@ -448,9 +448,6 @@ wayland {
|
|||||||
SOURCES += streaming/video/ffmpeg-renderers/pacer/waylandvsyncsource.cpp
|
SOURCES += streaming/video/ffmpeg-renderers/pacer/waylandvsyncsource.cpp
|
||||||
HEADERS += streaming/video/ffmpeg-renderers/pacer/waylandvsyncsource.h
|
HEADERS += streaming/video/ffmpeg-renderers/pacer/waylandvsyncsource.h
|
||||||
}
|
}
|
||||||
!disable-h264bitstream {
|
|
||||||
DEFINES += HAVE_H264BITSTREAM
|
|
||||||
}
|
|
||||||
|
|
||||||
RESOURCES += \
|
RESOURCES += \
|
||||||
resources.qrc \
|
resources.qrc \
|
||||||
|
|||||||
@@ -3,9 +3,7 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "streaming/session.h"
|
#include "streaming/session.h"
|
||||||
|
|
||||||
#ifdef HAVE_H264BITSTREAM
|
|
||||||
#include <h264_stream.h>
|
#include <h264_stream.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <libavutil/mastering_display_metadata.h>
|
#include <libavutil/mastering_display_metadata.h>
|
||||||
@@ -717,13 +715,8 @@ bool FFmpegVideoDecoder::completeInitialization(const AVCodec* decoder, enum AVP
|
|||||||
if (testMode != TestMode::TestFrameOnly) {
|
if (testMode != TestMode::TestFrameOnly) {
|
||||||
if ((params->videoFormat & VIDEO_FORMAT_MASK_H264) &&
|
if ((params->videoFormat & VIDEO_FORMAT_MASK_H264) &&
|
||||||
!(m_BackendRenderer->getDecoderCapabilities() & CAPABILITY_REFERENCE_FRAME_INVALIDATION_AVC)) {
|
!(m_BackendRenderer->getDecoderCapabilities() & CAPABILITY_REFERENCE_FRAME_INVALIDATION_AVC)) {
|
||||||
#ifdef HAVE_H264BITSTREAM
|
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
"Using H.264 SPS fixup");
|
"Using H.264 SPS fixup");
|
||||||
#else
|
|
||||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
|
||||||
"H.264 SPS fixup cannot be performed without h264bitstream. H.264 may have excessive decoding latency!");
|
|
||||||
#endif
|
|
||||||
m_NeedsSpsFixup = true;
|
m_NeedsSpsFixup = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -1765,7 +1758,6 @@ bool FFmpegVideoDecoder::initialize(PDECODER_PARAMETERS params)
|
|||||||
|
|
||||||
void FFmpegVideoDecoder::writeBuffer(PLENTRY entry, int& offset)
|
void FFmpegVideoDecoder::writeBuffer(PLENTRY entry, int& offset)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_H264BITSTREAM
|
|
||||||
if (m_NeedsSpsFixup && entry->bufferType == BUFFER_TYPE_SPS) {
|
if (m_NeedsSpsFixup && entry->bufferType == BUFFER_TYPE_SPS) {
|
||||||
h264_stream_t* stream = h264_new();
|
h264_stream_t* stream = h264_new();
|
||||||
int nalStart, nalEnd;
|
int nalStart, nalEnd;
|
||||||
@@ -1820,9 +1812,7 @@ void FFmpegVideoDecoder::writeBuffer(PLENTRY entry, int& offset)
|
|||||||
|
|
||||||
h264_free(stream);
|
h264_free(stream);
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
#endif
|
|
||||||
{
|
|
||||||
// Write the buffer as-is
|
// Write the buffer as-is
|
||||||
memcpy(&m_DecodeBuffer.data()[offset],
|
memcpy(&m_DecodeBuffer.data()[offset],
|
||||||
entry->data,
|
entry->data,
|
||||||
|
|||||||
+3
-7
@@ -2,20 +2,16 @@ TEMPLATE = subdirs
|
|||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
moonlight-common-c \
|
moonlight-common-c \
|
||||||
qmdnsengine \
|
qmdnsengine \
|
||||||
app
|
app \
|
||||||
|
h264bitstream
|
||||||
|
|
||||||
# Build the dependencies in parallel before the final app
|
# Build the dependencies in parallel before the final app
|
||||||
app.depends = qmdnsengine moonlight-common-c
|
app.depends = qmdnsengine moonlight-common-c h264bitstream
|
||||||
win32:!winrt {
|
win32:!winrt {
|
||||||
SUBDIRS += AntiHooking
|
SUBDIRS += AntiHooking
|
||||||
app.depends += AntiHooking
|
app.depends += AntiHooking
|
||||||
}
|
}
|
||||||
|
|
||||||
!disable-h264bitstream {
|
|
||||||
SUBDIRS += h264bitstream
|
|
||||||
app.depends += h264bitstream
|
|
||||||
}
|
|
||||||
|
|
||||||
# Support debug and release builds from command line for CI
|
# Support debug and release builds from command line for CI
|
||||||
CONFIG += debug_and_release
|
CONFIG += debug_and_release
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user