Commit f3b297c4 authored by Hyunjun Ko's avatar Hyunjun Ko Committed by Víctor Manuel Jáquez Leal

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
parent 08e95320
......@@ -180,8 +180,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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment