From 8d286e71d0418f653af2d745dfbe670b5a1e1f91 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Thu, 12 Jan 2012 13:32:10 +0800 Subject: [PATCH] Directly use component id instead of component index in VASliceParameterBufferJPEG The user application doesn't need to calculate the index anymore. Signed-off-by: Xiang, Haihao --- va/va.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/va/va.h b/va/va.h index 25c6194..20076a4 100644 --- a/va/va.h +++ b/va/va.h @@ -723,7 +723,7 @@ typedef struct _VASliceParameterBufferJPEG unsigned int num_components; struct { - int index; /* index to the ARRAY components in VAPictureParameterBufferJPEG */ + int component_id; /* Csj, it must match one of component_ids specified in VAPictureParameterBufferJPEG */ int dc_selector; /* Tdj(0,1,2,3) */ int ac_selector; /* Taj(0,1,2,3) */ } components[4]; -- 2.7.4