mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
(ffmpeg) Attempt to make ffmpeg recording driver forwards compatible
This commit is contained in:
parent
1943ccacfb
commit
8e7477ed07
@ -43,6 +43,10 @@ extern "C" {
|
||||
#define CORE_PREFIX(s) s
|
||||
#endif
|
||||
|
||||
#ifndef PIX_FMT_RGB32
|
||||
#define PIX_FMT_RGB32 AV_PIX_FMT_RGB32
|
||||
#endif
|
||||
|
||||
static bool reset_triggered;
|
||||
static void fallback_log(enum retro_log_level level, const char *fmt, ...)
|
||||
{
|
||||
|
@ -63,6 +63,26 @@ extern "C" {
|
||||
#include "../../audio/audio_utils.h"
|
||||
#include "../record_driver.h"
|
||||
|
||||
#ifndef PIX_FMT_RGB32
|
||||
#define PIX_FMT_RGB32 AV_PIX_FMT_RGB32
|
||||
#endif
|
||||
|
||||
#ifndef PIX_FMT_BGR24
|
||||
#define PIX_FMT_BGR24 AV_PIX_FMT_BGR24
|
||||
#endif
|
||||
|
||||
#ifndef PIX_FMT_RGB565
|
||||
#define PIX_FMT_RGB565 AV_PIX_FMT_RGB565
|
||||
#endif
|
||||
|
||||
#ifndef PIX_FMT_NONE
|
||||
#define PIX_FMT_NONE AV_PIX_FMT_NONE
|
||||
#endif
|
||||
|
||||
#ifndef PixelFormat
|
||||
#define PixelFormat AVPixelFormat
|
||||
#endif
|
||||
|
||||
#if LIBAVUTIL_VERSION_INT <= AV_VERSION_INT(52, 9, 0)
|
||||
#define av_frame_alloc avcodec_alloc_frame
|
||||
#define av_frame_free avcodec_free_frame
|
||||
|
Loading…
x
Reference in New Issue
Block a user