Fix compilation on Debian 6.0 (Squeeze).

git-svn-id: https://svn.eduke32.com/eduke32@3026 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-09-24 21:09:34 +00:00
parent 94ebe8211b
commit 2d3fe5083d

View file

@ -264,13 +264,18 @@ read_ivf_frame:
return 4; 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)) if (vpx_codec_control(&codec->codec, VP8D_GET_FRAME_CORRUPTED, &corrupted))
{ {
get_codec_error(codec); get_codec_error(codec);
codec->decstate = -2; codec->decstate = -2;
return 7; return 7;
} }
#endif
if (corrupted) if (corrupted)
OSD_Printf("warning: corrupted frame!\n"); OSD_Printf("warning: corrupted frame!\n");
} }