Older versions of GCC don't like declaring a variable in the middle
of a switch/case and will fail with "error: a label can only be
part of a statement and a declaration is not a statement".
if (self->rc_mode != VAAPI_ENC_PARAMS_RC_SKIP) {
AV_DICT_SET_INT(opts, "rc_mode", self->rc_mode, AV_DICT_DONT_OVERWRITE);
}
+ int tempSupport = 0;
switch (self->platform) {
case VAAPI_ENC_PLATFORM_UNCONSTRAINED:
// Uncontrained --> will allow any combination of parameters (valid or invalid)
break;
case VAAPI_ENC_PLATFORM_INTEL:
// Intel
- int tempSupport = 0;
if (self->low_power) {
tempSupport = vainfo_encoder_maxBfreames(VAINFO_H264_LOW_POWER);
}