mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
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:
parent
94ebe8211b
commit
2d3fe5083d
1 changed files with 6 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue