diff options
author | Fox Caminiti <fox@foxcam.net> | 2023-01-20 10:10:54 -0500 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2023-01-20 10:10:54 -0500 |
commit | 2f164ae23bcd8a857081529189b484a1515f2834 (patch) | |
tree | c7f5b163f7e1585a8fbdb3b8fb7fb012761ae239 /src/ffmpeg_backend.cpp | |
parent | 1d0d8549411e23394059f420f053cc3ee28dacfb (diff) |
youarelazy
Diffstat (limited to 'src/ffmpeg_backend.cpp')
-rw-r--r-- | src/ffmpeg_backend.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; |