summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Koleszar <jkoleszar@google.com>2010-12-17 11:34:02 -0500
committerJohn Koleszar <jkoleszar@google.com>2010-12-17 11:34:02 -0500
commitc49f49b113ce06f5dfb67327aab7761f561de0d2 (patch)
treee3cc10e4ec0de7614caafad3c9f58f5161b17e92
parentfc6ce744a606872c6d8001deabaab0b819326214 (diff)
downloadlibvpx-c49f49b113ce06f5dfb67327aab7761f561de0d2.tar
libvpx-c49f49b113ce06f5dfb67327aab7761f561de0d2.tar.gz
libvpx-c49f49b113ce06f5dfb67327aab7761f561de0d2.tar.bz2
libvpx-c49f49b113ce06f5dfb67327aab7761f561de0d2.zip
propagate user private data on decode
The pointer passed in the user_priv argument to vpx_codec_decode() should be propagated through to the corresponding output frame and made available in the image's user_priv member. Fixes issue #252 Change-Id: I182746a6882c8549fb146b4a4fdb64f1789eb750
-rw-r--r--vp8/vp8_dx_iface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vp8/vp8_dx_iface.c b/vp8/vp8_dx_iface.c
index cf32d1f38..a2ad59662 100644
--- a/vp8/vp8_dx_iface.c
+++ b/vp8/vp8_dx_iface.c
@@ -466,6 +466,7 @@ static vpx_codec_err_t vp8_decode(vpx_codec_alg_priv_t *ctx,
vpx_img_set_rect(&ctx->img,
VP8BORDERINPIXELS, VP8BORDERINPIXELS,
sd.y_width, sd.y_height);
+ ctx->img.user_priv = user_priv;
ctx->img_avail = 1;
}