shithub: libvpx

Download patch

ref: bbf61e35e792900bc0018849b3c83079e614d75f
parent: 3eb0170ea6a12492ec70f54f4cea5e41ac0c2c1b
author: Frank Galligan <fgalligan@google.com>
date: Thu Dec 5 10:45:15 EST 2013

Fix bug with put slice cb function.

Change-Id: Idfbd87d0a4bebdce7dd587c8446e7fa75b030d91

--- a/vpx/src/vpx_decoder.c
+++ b/vpx/src/vpx_decoder.c
@@ -172,7 +172,7 @@
   if (!ctx || !cb)
     res = VPX_CODEC_INVALID_PARAM;
   else if (!ctx->iface || !ctx->priv
-           || !(ctx->iface->caps & VPX_CODEC_CAP_PUT_FRAME))
+           || !(ctx->iface->caps & VPX_CODEC_CAP_PUT_SLICE))
     res = VPX_CODEC_ERROR;
   else {
     ctx->priv->dec.put_slice_cb.u.put_slice = cb;