summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@hotmail.com>2020-01-02 21:11:44 +0800
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-01-03 15:29:14 +0000
commitd687e2cb786c5ad13e547d8e954cc3350b644432 (patch)
tree65c3ea91df66eae8b958fc1d922a65d42ade8c3d
parent196fef9392cd6213a548d1f19be88b971255ee53 (diff)
libs: encoder: modify 265 VPS header fields.
vps_base_layer_internal_flag and vps_base_layer_available_flag have been clearly defined now.
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_h265.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c
index fcb7bb56..c1d6e1fc 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c
@@ -289,11 +289,15 @@ bs_write_vps_data (GstBitWriter * bs, GstVaapiEncoderH265 * encoder,
guint32 vps_num_layer_sets_minus1 = 0;
guint32 vps_timing_info_present_flag = 0;
guint32 vps_extension_flag = 0;
+ guint32 vps_base_layer_internal_flag = 1;
+ guint32 vps_base_layer_available_flag = 1;
/* video_parameter_set_id */
WRITE_UINT32 (bs, video_parameter_set_id, 4);
- /* vps_reserved_three_2bits */
- WRITE_UINT32 (bs, 3, 2);
+ /* vps_base_layer_internal_flag */
+ WRITE_UINT32 (bs, vps_base_layer_internal_flag, 1);
+ /* vps_base_layer_available_flag */
+ WRITE_UINT32 (bs, vps_base_layer_available_flag, 1);
/* vps_max_layers_minus1 */
WRITE_UINT32 (bs, vps_max_layers_minus1, 6);
/* vps_max_sub_layers_minus1 */