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

Commit 01312eba authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: define max profile level count"

parents 485b308f 4095e258
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -582,6 +582,11 @@ enum vidc_status hfi_process_sess_init_done_prop_read(
			dprintk(VIDC_DBG, "prop->profile_count: %d\n",
				prop->profile_count);
			prop_count = prop->profile_count;
			if (prop_count > MAX_PROFILE_COUNT) {
				prop_count = MAX_PROFILE_COUNT;
				dprintk(VIDC_WARN,
					"prop count exceeds max profile count\n");
			}
			while (prop_count) {
				ptr++;
				prop_level = (struct hfi_profile_level *) ptr;
+2 −1
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@
#define HAL_DEBUG_MSG_HIGH				0x00000004
#define HAL_DEBUG_MSG_ERROR				0x00000008
#define HAL_DEBUG_MSG_FATAL				0x00000010
#define MAX_PROFILE_COUNT	16

enum vidc_status {
	VIDC_ERR_NONE = 0x0,
@@ -578,7 +579,7 @@ struct hal_profile_level {

struct hal_profile_level_supported {
	u32 profile_count;
	struct hal_profile_level profile_level[1];
	struct hal_profile_level profile_level[MAX_PROFILE_COUNT];
};

enum hal_h264_entropy {