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
This commit is contained in:
Hyunjun Ko 2018-06-01 15:27:25 +09:00 committed by Víctor Manuel Jáquez Leal
parent 705b37844e
commit 676e558331

View file

@ -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;
}