diff options
author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2018-07-20 13:43:11 +0200 |
---|---|---|
committer | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2018-07-20 13:47:48 +0200 |
commit | 3b0e7dbf12b6dce863ea4103d2e80c148a420cd2 (patch) | |
tree | 2c2df7990fcaf6024fc8bbb64096fef9d601ec09 | |
parent | fa7ab6a25148e3beeef6977daeb7dd2566b9c448 (diff) | |
download | libva-v4l2-request-3b0e7dbf12b6dce863ea4103d2e80c148a420cd2.tar.gz libva-v4l2-request-3b0e7dbf12b6dce863ea4103d2e80c148a420cd2.tar.bz2 libva-v4l2-request-3b0e7dbf12b6dce863ea4103d2e80c148a420cd2.zip |
surface: Avoid unitialized variable compiler warning
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
-rw-r--r-- | src/surface.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/surface.c b/src/surface.c index 7e0585a..f6b9935 100644 --- a/src/surface.c +++ b/src/surface.c @@ -460,12 +460,11 @@ VAStatus RequestExportSurfaceHandle(VADriverContextP context, surface_descriptor->height = surface_object->height; surface_descriptor->num_objects = export_fds_count; - if (export_fds_count == 1) { - size = 0; + size = 0; + if (export_fds_count == 1) for (i = 0; i < planes_count; i++) size += surface_object->destination_sizes[i]; - } for (i = 0; i < export_fds_count; i++) { surface_descriptor->objects[i].drm_format_modifier = |