From 676e558331408f317d47e731a719de67bbc5cf62 Mon Sep 17 00:00:00 2001 From: Hyunjun Ko Date: Fri, 1 Jun 2018 15:27:25 +0900 Subject: [PATCH] libs: encoder: h265: increase log2_max_pic_order_cnt range according to spec The specification says, "log2_max_pic_order_cnt_lsb_minus4 shall be in the range of 0 to 12, inclusive." This patch changes the upper limit from 6 to 12. https://bugzilla.gnome.org/show_bug.cgi?id=796179 --- gst-libs/gst/vaapi/gstvaapiencoder_h265.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c index aa838d5ab8..e1814d24b1 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c @@ -181,8 +181,8 @@ h265_get_log2_max_pic_order_cnt (guint num) } if (ret <= 4) ret = 4; - else if (ret > 10) - ret = 10; + else if (ret > 16) + ret = 16; /* must be greater than 4 */ return ret; }