• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/common/libva


コミットメタ情報

リビジョンf804f0ec3a9c06065ec194c0d888039a6083e6c1 (tree)
日時2018-12-19 18:40:08
作者Badiuzzaman Iskhandar <badiuzzaman.azzarfan.bin.iskhandar@inte...>
コミッターXinfengZhang

ログメッセージ

Fix compilation warning (uninit and wrong variable types) for Android O MR1

Signed-off-by: Badiuzzaman Iskhandar <badiuzzaman.azzarfan.bin.iskhandar@intel.com>

変更サマリ

差分

--- a/va/drm/va_drm_utils.c
+++ b/va/drm/va_drm_utils.c
@@ -44,7 +44,7 @@ static const struct driver_name_map g_driver_name_map[] = {
4444 { "nouveau", 7, "nouveau" }, // Mesa Gallium driver
4545 { "radeon", 6, "r600" }, // Mesa Gallium driver
4646 { "amdgpu", 6, "radeonsi" }, // Mesa Gallium driver
47- { NULL, }
47+ { NULL, 0, NULL }
4848 };
4949
5050 /* Returns the VA driver name for the active display */
--- a/va/va.c
+++ b/va/va.c
@@ -406,7 +406,7 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
406406 { VA_MAJOR_VERSION, 2 },
407407 { VA_MAJOR_VERSION, 1 },
408408 { VA_MAJOR_VERSION, 0 },
409- { -1, }
409+ { -1, -1}
410410 };
411411
412412 for (i = 0; compatible_versions[i].major >= 0; i++) {
@@ -943,7 +943,7 @@ va_impl_query_surface_attributes(
943943 { VASurfaceAttribMinHeight, VAGenericValueTypeInteger },
944944 { VASurfaceAttribMaxHeight, VAGenericValueTypeInteger },
945945 { VASurfaceAttribMemoryType, VAGenericValueTypeInteger },
946- { VASurfaceAttribNone, }
946+ { VASurfaceAttribNone, VAGenericValueTypeInteger }
947947 };
948948
949949 if (!out_attribs || !out_num_attribs_ptr)
--- a/va/va_fool.c
+++ b/va/va_fool.c
@@ -265,7 +265,7 @@ VAStatus va_FoolBufferInfo(
265265 static int va_FoolFillCodedBufEnc(VADisplay dpy, struct fool_context *fool_ctx)
266266 {
267267 char file_name[1024];
268- struct stat file_stat = {0};
268+ struct stat file_stat = {};
269269 VACodedBufferSegment *codedbuf;
270270 int i, fd = -1;
271271 ssize_t ret;
@@ -311,7 +311,7 @@ static int va_FoolFillCodedBufEnc(VADisplay dpy, struct fool_context *fool_ctx)
311311
312312 static int va_FoolFillCodedBufJPG(VADisplay dpy, struct fool_context *fool_ctx)
313313 {
314- struct stat file_stat = {0};
314+ struct stat file_stat = {};
315315 VACodedBufferSegment *codedbuf;
316316 int fd = -1;
317317 ssize_t ret;
--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -1134,7 +1134,7 @@ static void va_TraceSurfaceAttributes(
11341134 va_TraceMsg(trace_ctx, "\t\tvalue.value.p = %p\n", p->value.value.p);
11351135 if ((p->type == VASurfaceAttribExternalBufferDescriptor) && p->value.value.p) {
11361136 VASurfaceAttribExternalBuffers *tmp = (VASurfaceAttribExternalBuffers *) p->value.value.p;
1137- int j;
1137+ uint32_t j;
11381138
11391139 va_TraceMsg(trace_ctx, "\t\t--VASurfaceAttribExternalBufferDescriptor\n");
11401140 va_TraceMsg(trace_ctx, "\t\t pixel_format=0x%08x\n", tmp->pixel_format);
@@ -4629,7 +4629,7 @@ va_TraceProcFilterParameterBuffer(
46294629 unsigned int size;
46304630 unsigned int num_elements;
46314631 VAProcFilterParameterBufferBase *base_filter = NULL;
4632- int i;
4632+ unsigned int i;
46334633
46344634 DPY2TRACECTX(dpy, context, VA_INVALID_ID);
46354635
@@ -4694,7 +4694,7 @@ va_TraceVAProcPipelineParameterBuffer(
46944694 )
46954695 {
46964696 VAProcPipelineParameterBuffer *p = (VAProcPipelineParameterBuffer *)data;
4697- int i;
4697+ uint32_t i;
46984698
46994699 DPY2TRACECTX(dpy, context, VA_INVALID_ID);
47004700