]> granicus.if.org Git - libvpx/commitdiff
Fix bug with put slice cb function.
authorFrank Galligan <fgalligan@google.com>
Thu, 5 Dec 2013 23:45:15 +0000 (15:45 -0800)
committerFrank Galligan <fgalligan@google.com>
Thu, 5 Dec 2013 23:45:15 +0000 (15:45 -0800)
Change-Id: Idfbd87d0a4bebdce7dd587c8446e7fa75b030d91

vpx/src/vpx_decoder.c

index 1f575e0a04236573f0fcf2557e9b6d28c838af5c..a99e48f88e7b2c980e28b15bce6dc1e82f757c01 100644 (file)
@@ -172,7 +172,7 @@ vpx_codec_err_t vpx_codec_register_put_slice_cb(vpx_codec_ctx_t             *ctx
   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;