From 2f164ae23bcd8a857081529189b484a1515f2834 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Fri, 20 Jan 2023 10:10:54 -0500 Subject: youarelazy --- src/ffmpeg_backend.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ffmpeg_backend.cpp') diff --git a/src/ffmpeg_backend.cpp b/src/ffmpeg_backend.cpp index a104714..510188b 100644 --- a/src/ffmpeg_backend.cpp +++ b/src/ffmpeg_backend.cpp @@ -1,3 +1,7 @@ +#if SPECIAL +#include "main.h" +#endif + // workaround to make libav error printing work #ifdef av_err2str #undef av_err2str @@ -9,7 +13,7 @@ av_always_inline std::string av_err2string(int errnum) { #define av_err2str(err) av_err2string(err).c_str() #endif // av_err2str -bool32 AV_TryFrame(av_info *AV, AVCodecContext *CodecContext, int32 *err, bool32 *EndOfFile, int StreamIndex = -1) +bool32 AV_TryFrame(av_info *AV, AVCodecContext *CodecContext, int32 *err, bool32 *EndOfFile, int StreamIndex) { *err = av_read_frame(AV->FileFormatContext, AV->Packet); bool32 CheckForStream = (StreamIndex != -1) ? (AV->Packet->stream_index == StreamIndex) : 1; -- cgit v1.2.3