ref: e55e3f80319e9cae14b91b649bc861b0b5297c53
parent: 3b921d49b07abd619a6fab135795c94f4ce1c7bd
parent: fb71f98165785d28ddc6f0ea3858847f00fd3015
author: Harish Mahendrakar <harish.mahendrakar@ittiam.com>
date: Thu Jul 26 15:57:53 EDT 2018
Merge "vpxdec: only call row-mt control for vp9"
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -99,7 +99,7 @@
static const arg_def_t framestatsarg =
ARG_DEF(NULL, "framestats", 1, "Output per-frame stats (.csv format)");
static const arg_def_t rowmtarg =
- ARG_DEF(NULL, "row-mt", 1, "Enable multi-threading to run row-wise");
+ ARG_DEF(NULL, "row-mt", 1, "Enable multi-threading to run row-wise in VP9");
static const arg_def_t *all_args[] = {
&help, &codecarg, &use_yv12, &use_i420,
@@ -758,7 +758,8 @@
goto fail;
}
}
- if (vpx_codec_control(&decoder, VP9D_SET_ROW_MT, enable_row_mt)) {
+ if (interface->fourcc == VP9_FOURCC &&
+ vpx_codec_control(&decoder, VP9D_SET_ROW_MT, enable_row_mt)) {
fprintf(stderr, "Failed to set decoder in row multi-thread mode: %s\n",
vpx_codec_error(&decoder));
goto fail;