ref: 6175f285a93c05225b888a94c28c7e13b38efdaa
parent: 535b7b915ae5574db2f95632243cc5bee865f02e
parent: 530e60143a60b77ab749003bf991a58f083752a3
author: James Zern <jzern@google.com>
date: Wed Sep 27 14:37:20 EDT 2017
Merge "vp9_dx_iface: Stop using iter parameter incorrectly"
--- a/vp9/vp9_dx_iface.c
+++ b/vp9/vp9_dx_iface.c
@@ -378,9 +378,11 @@
vpx_codec_iter_t *iter) {
vpx_image_t *img = NULL;
- // iter acts as a flip flop, so an image is only returned on the first
- // call to get_frame.
- if (*iter == NULL && ctx->pbi != NULL) {
+ // Legacy parameter carried over from VP8. Has no effect for VP9 since we
+ // always return only 1 frame per decode call.
+ (void)iter;
+
+ if (ctx->pbi != NULL) {
YV12_BUFFER_CONFIG sd;
vp9_ppflags_t flags = { 0, 0, 0 };
if (ctx->base.init_flags & VPX_CODEC_USE_POSTPROC) set_ppflags(ctx, &flags);