diff options
author | Emeric Grange <emeric.grange@gmail.com> | 2011-10-30 15:13:11 +0100 |
---|---|---|
committer | Emeric Grange <emeric.grange@gmail.com> | 2012-06-24 16:57:30 +0200 |
commit | 4da36b1ffa36cba0d5783b19a3f58fe30dcb33de (patch) | |
tree | b9b4f3142b71d1c25a6fd49944473c5c69266319 /src/gallium/auxiliary/vl/vl_vp8_decoder.c | |
parent | 9d52b75a9201113c7b656fcb008e9e90612015b0 (diff) |
g3dvl: Clean up the vp8 decoder initialization process
Signed-off-by: Emeric Grange <emeric.grange@gmail.com>
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_vp8_decoder.c')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_vp8_decoder.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/vl/vl_vp8_decoder.c b/src/gallium/auxiliary/vl/vl_vp8_decoder.c index f574e315d9..655594f23f 100644 --- a/src/gallium/auxiliary/vl/vl_vp8_decoder.c +++ b/src/gallium/auxiliary/vl/vl_vp8_decoder.c @@ -441,8 +441,11 @@ vl_create_vp8_decoder(struct pipe_context *context, if (!init_pipe_state(dec)) goto error_pipe_state; - //if (vp8_init(&(dec->priv)) != VPX_CODEC_OK) - // goto error_vp8_dec; + // Initialize the vp8 decoder instance + dec->alg_priv.pbi = vp8dx_create_decompressor(0); + + if (!dec->alg_priv.pbi) + goto error_vp8_dec; return &dec->base; |