diff --git a/cores/libretro-ffmpeg/ffmpeg_core.c b/cores/libretro-ffmpeg/ffmpeg_core.c index 645e63f6be..495e7fb87a 100644 --- a/cores/libretro-ffmpeg/ffmpeg_core.c +++ b/cores/libretro-ffmpeg/ffmpeg_core.c @@ -856,7 +856,7 @@ void CORE_PREFIX(retro_run)(void) glBindTexture(GL_TEXTURE_2D, frames[1].tex); #if defined(HAVE_OPENGLES) glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, - media.width, media.height, 0, GL_RGBA, GL_UNSIGNED_BYTE, data); + media.width, media.height, 0, GL_RGBA, GL_UNSIGNED_BYTE, video_frame_temp_buffer); #else glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, media.width, media.height, 0, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, NULL); diff --git a/cores/libretro-ffmpeg/video_buffer.h b/cores/libretro-ffmpeg/video_buffer.h index 25f0af8fdc..2c76570649 100644 --- a/cores/libretro-ffmpeg/video_buffer.h +++ b/cores/libretro-ffmpeg/video_buffer.h @@ -20,6 +20,7 @@ extern "C" { #endif +#include #include #include