summaryrefslogtreecommitdiff
path: root/vpxdec.c
diff options
context:
space:
mode:
authorDeb Mukherjee <debargha@google.com>2014-08-22 13:14:58 -0700
committerDeb Mukherjee <debargha@google.com>2014-08-22 13:14:58 -0700
commite9f85d3ff16af3b2fa8057278328c6c63182933a (patch)
tree9db39fd4bfd86d3b7439b5cb7a64c42dfeabe3e4 /vpxdec.c
parenta19035e8bbcd65f86e36541ca6e353c4881b8e54 (diff)
downloadlibvpx-e9f85d3ff16af3b2fa8057278328c6c63182933a.tar.gz
Set scaled img format correctly in vpxdec
Use img->fmt rather than hardcoded I420P to support profiles 1-3. Change-Id: I31fc89e545208243e133512d41e2d97995a968ce
Diffstat (limited to 'vpxdec.c')
-rw-r--r--vpxdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpxdec.c b/vpxdec.c
index 6c822abe7..fceb0463e 100644
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -889,7 +889,7 @@ int main_loop(int argc, const char **argv_) {
display_height = display_size[1];
}
}
- scaled_img = vpx_img_alloc(NULL, VPX_IMG_FMT_I420, display_width,
+ scaled_img = vpx_img_alloc(NULL, img->fmt, display_width,
display_height, 16);
scaled_img->bit_depth = img->bit_depth;
}