diff --git a/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c b/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c index 82740d0f98..7e9b1985fc 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvah264enc.c @@ -1417,9 +1417,9 @@ _decide_profile (GstVaH264Enc * self, VAProfile * _profile, guint * _rt_format) continue; } - /* baseline only support I/P mode. */ - if (self->gop.num_bframes > 0) { - if (g_strstr_len (profile_name, -1, "baseline")) + /* baseline only support I/P mode and neither cabac nor dct8x8. */ + if (!self->use_dct8x8 && !self->use_cabac && self->gop.num_bframes == 0) { + if (!g_strstr_len (profile_name, -1, "baseline")) continue; }