Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab4a7576 authored by Chinmay Sawarkar's avatar Chinmay Sawarkar
Browse files

[media] v4l2-ctrls: Add missing qmenu entries for MPEG ctrls



V4l2 control framework mandates a qmenu entry for each control item.
Validate_new() function accesses the qmenu entry for control item,
and any missing qmenu entries causes a crash within this function.
This patch fixes those crashes.

CRs-Fixed: 2196184
Change-Id: Ibbac1510df99e03356409392eb5f10bdc599e6c3
Signed-off-by: default avatarChinmay Sawarkar <chinmays@codeaurora.org>
parent 66f22056
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -338,6 +338,9 @@ const char * const *v4l2_ctrl_get_menu(u32 id)
		"4.2",
		"5",
		"5.1",
		"5.2",
		"6.0",
		"Unknown",
		NULL,
	};
	static const char * const h264_loop_filter[] = {
@@ -364,6 +367,7 @@ const char * const *v4l2_ctrl_get_menu(u32 id)
		"Scalable High Intra",
		"Stereo High",
		"Multiview High",
		"Constrained High",
		NULL,
	};
	static const char * const vui_sar_idc[] = {