slackbuilds_ponce/games/yabause/ffmpeg3.patch
Willy Sudiarto Raharjo c12a3dcc11 games/yabause: Patched to fix build with ffmpeg 3.x.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2017-04-15 07:50:43 +07:00

20 lines
644 B
Diff

--- yabause-0.9.15/src/mpeg_card.c.orig 2017-04-14 21:15:44.908378882 +0700
+++ yabause-0.9.15/src/mpeg_card.c 2017-04-14 21:17:15.386497605 +0700
@@ -535,7 +535,7 @@
yab_mpeg.audio.context->channels = 2;
yab_mpeg.audio.context->sample_rate = 44100;
- ret = av_image_alloc(out_buf,out_linesize, 320, 240,PIX_FMT_RGB32, 1);
+ ret = av_image_alloc(out_buf,out_linesize, 320, 240,AV_PIX_FMT_RGB32, 1);
if(!ret)
assert(0);
@@ -561,7 +561,7 @@
//dest width, height, format
out_width,
out_height,
- PIX_FMT_RGB32,
+ AV_PIX_FMT_RGB32,
//flags
SWS_BILINEAR,
//source/dest filters