encoder: h264: fix number of anchor and non-anchor reference pictures.
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Thu, 26 Jun 2014 21:49:34 +0000 (00:49 +0300)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 27 Jun 2014 09:51:32 +0000 (11:51 +0200)
Set the value of num_anchor_refs_l0, num_anchor_refs_l1, num_non_anchor_refs_l0,
and num_non_anchor_refs_l1 to zero since the inter-view prediction is not yet
supported.

gst-libs/gst/vaapi/gstvaapiencoder_h264.c

index f986d5e..ac6e41f 100644 (file)
@@ -572,24 +572,24 @@ bs_write_subset_sps (GstBitWriter * bs,
       WRITE_UE (bs, i);
 
     for (i = 1; i <= num_views_minus1; i++) {
-      guint32 num_anchor_refs_l0 = 15;
+      guint32 num_anchor_refs_l0 = 0;
       WRITE_UE (bs, num_anchor_refs_l0);
       for (j = 0; j < num_anchor_refs_l0; j++)
         WRITE_UE (bs, 0);
 
-      guint32 num_anchor_refs_l1 = 15;
+      guint32 num_anchor_refs_l1 = 0;
       WRITE_UE (bs, num_anchor_refs_l1);
       for (j = 0; j < num_anchor_refs_l1; j++)
         WRITE_UE (bs, 0);
     }
 
     for (i = 1; i <= num_views_minus1; i++) {
-      guint num_non_anchor_refs_l0 = 15;
+      guint32 num_non_anchor_refs_l0 = 0;
       WRITE_UE (bs, num_non_anchor_refs_l0);
       for (j = 0; j < num_non_anchor_refs_l0; j++)
         WRITE_UE (bs, 0);
 
-      guint num_non_anchor_refs_l1 = 15;
+      guint32 num_non_anchor_refs_l1 = 0;
       WRITE_UE (bs, num_non_anchor_refs_l1);
       for (j = 0; j < num_non_anchor_refs_l1; j++)
         WRITE_UE (bs, 0);