encoder: h264: don't allow CABAC with Extended profile.
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Tue, 1 Apr 2014 11:23:56 +0000 (14:23 +0300)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 3 Jun 2014 11:53:43 +0000 (13:53 +0200)
The H.264 specification does not support CABAC entropy coding for the
Extended profile.

https://bugzilla.gnome.org/show_bug.cgi?id=727418

gst-libs/gst/vaapi/gstvaapiencoder_h264.c

index a668906..5661865 100644 (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;