encoder: h264: don't allow CABAC with Extended profile.

The H.264 specification does not support CABAC entropy coding for the
Extended profile.

https://bugzilla.gnome.org/show_bug.cgi?id=727418
This commit is contained in:
Sreerenj Balachandran 2014-04-01 14:23:56 +03:00 committed by Gwenole Beauchesne
parent dba440b164
commit 6df5c74081

View file

@ -1111,7 +1111,7 @@ ensure_tuning_high_compression (GstVaapiEncoderH264 * encoder)
profile_idc = encoder->max_profile_idc;
/* Tuning options to enable Main profile */
if (profile_idc >= 77) {
if (profile_idc >= 77 && profile_idc != 88) {
encoder->use_cabac = TRUE;
if (!encoder->num_bframes)
encoder->num_bframes = 1;