summaryrefslogtreecommitdiff
path: root/vpxdec.c
diff options
context:
space:
mode:
authorHarish Mahendrakar <harish.mahendrakar@ittiam.com>2018-07-25 12:46:32 -0700
committerJames Zern <jzern@google.com>2018-07-26 12:07:18 -0700
commitfb71f98165785d28ddc6f0ea3858847f00fd3015 (patch)
treeefef097807ba7a7de551dde2c892087a8618046f /vpxdec.c
parent16c80212bdcb44302d48d791b78508f52dd8cb33 (diff)
downloadlibvpx-fb71f98165785d28ddc6f0ea3858847f00fd3015.tar.gz
vpxdec: only call row-mt control for vp9
BUG=webm:1549 Change-Id: Ib31b22f0d982e3a7c6a200274582cda7528d1ec9
Diffstat (limited to 'vpxdec.c')
-rw-r--r--vpxdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vpxdec.c b/vpxdec.c
index 26c475293..522eda126 100644
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -99,7 +99,7 @@ static const arg_def_t svcdecodingarg = ARG_DEF(
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 @@ static int main_loop(int argc, const char **argv_) {
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;