Fix missing functino arguments for FFMpeg

This commit is contained in:
Iwan Timmer 2016-03-16 19:29:10 +01:00
parent 510d5e86e0
commit e53be38bdb
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@
// Uses hardware acceleration
#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);
int ffmpeg_draw_frame(AVFrame *pict);

View File

@ -37,7 +37,7 @@ static void sdl_setup(int videoFormat, int width, int height, int redrawRate, vo
if (drFlags && FORCE_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");
exit(1);
}