Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
include dependencies and make static variable immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
MGTheTrain committed Apr 18, 2024
1 parent b14803f commit f729e52
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/video/include/video.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,20 @@

#pragma once


#include <SDL2/SDL.h>
#include <SDL2/SDL_thread.h>
#include <libavformat/avformat.h>

#include <libavcodec/avcodec.h>
#include <libswscale/swscale.h>
#include <iostream>

#ifdef __cplusplus
extern "C" {
#endif
static AVFormatContext* formatContext = nullptr;
static AVCodecParameters* codecParameters = nullptr;
static AVCodec* codec = nullptr;
static const AVCodec* codec = nullptr;
static AVCodecContext* codecContext = nullptr;
static SDL_Window* window = nullptr;
static SDL_Renderer* renderer = nullptr;
Expand Down

0 comments on commit f729e52

Please sign in to comment.