mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-16 22:01:11 +00:00
Fix missing functino arguments for FFMpeg
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@
|
|||||||
// Uses hardware acceleration
|
// Uses hardware acceleration
|
||||||
#define HARDWARE_ACCELERATION 0x40
|
#define HARDWARE_ACCELERATION 0x40
|
||||||
|
|
||||||
int ffmpeg_init(int width, int height, int perf_lvl, int thread_count);
|
int ffmpeg_init(int videoFormat, int width, int height, int perf_lvl, int thread_count);
|
||||||
void ffmpeg_destroy(void);
|
void ffmpeg_destroy(void);
|
||||||
|
|
||||||
int ffmpeg_draw_frame(AVFrame *pict);
|
int ffmpeg_draw_frame(AVFrame *pict);
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@ static void sdl_setup(int videoFormat, int width, int height, int redrawRate, vo
|
|||||||
if (drFlags && FORCE_HARDWARE_ACCELERATION)
|
if (drFlags && FORCE_HARDWARE_ACCELERATION)
|
||||||
avc_flags |= HARDWARE_ACCELERATION;
|
avc_flags |= HARDWARE_ACCELERATION;
|
||||||
|
|
||||||
if (ffmpeg_init(width, height, avc_flags, 2) < 0) {
|
if (ffmpeg_init(videoFormat, width, height, avc_flags, 2) < 0) {
|
||||||
fprintf(stderr, "Couldn't initialize video decoding\n");
|
fprintf(stderr, "Couldn't initialize video decoding\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user