From 23e16e4dcdc4d073502255de81ff487c3568ea78 Mon Sep 17 00:00:00 2001 From: Vikash Garodia Date: Tue, 5 May 2020 13:40:31 +0530 Subject: [PATCH] msm: vidc: update extradata size for input buffer packet As per the interface agreement, rg_data would communicate the size of extradata. Update the same while creating the packet. Change-Id: Id61bce9486a11db5263c336b3284e81953a9a070 Signed-off-by: Vikash Garodia Signed-off-by: Akshata Sahukar --- msm/vidc/hfi_packetization.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/msm/vidc/hfi_packetization.c b/msm/vidc/hfi_packetization.c index 23a6a83ebce3..922b9fd8da6d 100644 --- a/msm/vidc/hfi_packetization.c +++ b/msm/vidc/hfi_packetization.c @@ -477,6 +477,8 @@ int create_pkt_cmd_session_etb_decoder( pkt->filled_len = input_frame->filled_len; pkt->input_tag = input_frame->input_tag; pkt->packet_buffer = (u32)input_frame->device_addr; + pkt->extra_data_buffer = 0; + pkt->rgData[0] = 0; trace_msm_v4l2_vidc_buffer_event_start("ETB", input_frame->device_addr, input_frame->timestamp, @@ -511,6 +513,7 @@ int create_pkt_cmd_session_etb_encoder( pkt->input_tag = input_frame->input_tag; pkt->packet_buffer = (u32)input_frame->device_addr; pkt->extra_data_buffer = (u32)input_frame->extradata_addr; + pkt->rgData[0] = input_frame->extradata_size; trace_msm_v4l2_vidc_buffer_event_start("ETB", input_frame->device_addr, input_frame->timestamp,