Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-intel-common-vaapi: 提交

hardware/intel/common/vaapi


Commit MetaInfo

修订版4f8fe64e513ecc461e03e9115315a1459a4684dd (tree)
时间2018-11-21 14:34:42
作者Xu Guangxin <guangxin.xu@inte...>
CommiterXiang, Haihao

Log Message

gen75_proc_picture: check return value from gen75_vpp_vebox

gen75_vpp_vebox will check many things like invalid param, unsupported features.
Better check the return value

更改概述

差异

--- a/src/gen75_picture_process.c
+++ b/src/gen75_picture_process.c
@@ -327,7 +327,9 @@ gen75_proc_picture(VADriverContextP ctx,
327327 proc_ctx->surface_render_output_object = stage1_dst_surf;
328328 }
329329
330- gen75_vpp_vebox(ctx, proc_ctx);
330+ status = gen75_vpp_vebox(ctx, proc_ctx);
331+ if (status != VA_STATUS_SUCCESS)
332+ goto error;
331333 }
332334
333335 if ((vpp_stage3 == 1) && (vpp_stage2 == 1)) {
@@ -388,7 +390,9 @@ gen75_proc_picture(VADriverContextP ctx,
388390 filter->type == VAProcFilterSkinToneEnhancement ||
389391 filter->type == VAProcFilterSharpening ||
390392 filter->type == VAProcFilterColorBalance) {
391- gen75_vpp_vebox(ctx, proc_ctx);
393+ status = gen75_vpp_vebox(ctx, proc_ctx);
394+ if (status != VA_STATUS_SUCCESS)
395+ goto error;
392396 }
393397 } else if (pipeline_param->num_filters >= 2) {
394398 unsigned int i = 0;
@@ -413,7 +417,9 @@ gen75_proc_picture(VADriverContextP ctx,
413417 assert(0);
414418 }
415419 }
416- gen75_vpp_vebox(ctx, proc_ctx);
420+ status = gen75_vpp_vebox(ctx, proc_ctx);
421+ if (status != VA_STATUS_SUCCESS)
422+ goto error;
417423 }
418424 }
419425
@@ -431,7 +437,9 @@ gen75_proc_picture(VADriverContextP ctx,
431437 proc_ctx->surface_render_output_object = obj_dst_surf;
432438 }
433439
434- gen75_vpp_vebox(ctx, proc_ctx);
440+ status = gen75_vpp_vebox(ctx, proc_ctx);
441+ if (status != VA_STATUS_SUCCESS)
442+ goto error;
435443 }
436444
437445 if (num_tmp_surfaces)
Show on old repository browser