From 2d3fe5083d5f91f3fcca6ec84b217260fcd4f00e Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 24 Sep 2012 21:09:34 +0000 Subject: [PATCH] Fix compilation on Debian 6.0 (Squeeze). git-svn-id: https://svn.eduke32.com/eduke32@3026 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/animvpx.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/animvpx.c b/polymer/eduke32/source/animvpx.c index 3ee806dcf..836d17394 100644 --- a/polymer/eduke32/source/animvpx.c +++ b/polymer/eduke32/source/animvpx.c @@ -264,13 +264,18 @@ read_ivf_frame: return 4; } +// Compilation fix for Debian 6.0 (squeeze), which doesn't have +// VP8D_GET_FRAME_CORRUPTED. +// LibVPX doesn't seem to have a version #define, so we use the +// following one to determine conditional compilation. +#ifdef VPX_CODEC_CAP_ERROR_CONCEALMENT if (vpx_codec_control(&codec->codec, VP8D_GET_FRAME_CORRUPTED, &corrupted)) { get_codec_error(codec); codec->decstate = -2; return 7; } - +#endif if (corrupted) OSD_Printf("warning: corrupted frame!\n"); }