Skip to content

Commit facbd4e

Browse files
mamarleyFlole998
authored andcommitted
Fix FTBFS introduced by 76d8fc8
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".
1 parent 3bb78af commit facbd4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/transcoding/codec/codecs/libs

src/transcoding/codec/codecs/libs/vaapi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,7 @@ tvh_codec_profile_vaapi_h264_open(tvh_codec_profile_vaapi_t *self,
668668
if (self->rc_mode != VAAPI_ENC_PARAMS_RC_SKIP) {
669669
AV_DICT_SET_INT(opts, "rc_mode", self->rc_mode, AV_DICT_DONT_OVERWRITE);
670670
}
671+
int tempSupport = 0;
671672
switch (self->platform) {
672673
case VAAPI_ENC_PLATFORM_UNCONSTRAINED:
673674
// Uncontrained --> will allow any combination of parameters (valid or invalid)
@@ -711,7 +712,6 @@ tvh_codec_profile_vaapi_h264_open(tvh_codec_profile_vaapi_t *self,
711712
break;
712713
case VAAPI_ENC_PLATFORM_INTEL:
713714
// Intel
714-
int tempSupport = 0;
715715
if (self->low_power) {
716716
tempSupport = vainfo_encoder_maxBfreames(VAINFO_H264_LOW_POWER);
717717
}

0 commit comments

Comments
 (0)