Index: source/libvpx/vp8/vp8_dx_iface.c |
=================================================================== |
--- source/libvpx/vp8/vp8_dx_iface.c (revision 292608) |
+++ source/libvpx/vp8/vp8_dx_iface.c (working copy) |
@@ -112,23 +112,20 @@ |
* structure. More memory may be required at the time the stream |
* information becomes known. |
*/ |
- if (!ctx->priv) |
- { |
- vp8_init_ctx(ctx); |
- priv = (vpx_codec_alg_priv_t *)ctx->priv; |
+ if (!ctx->priv) { |
+ vp8_init_ctx(ctx); |
+ priv = (vpx_codec_alg_priv_t *)ctx->priv; |
- /* initialize number of fragments to zero */ |
- priv->fragments.count = 0; |
- /* is input fragments enabled? */ |
- priv->fragments.enabled = |
- (priv->base.init_flags & VPX_CODEC_USE_INPUT_FRAGMENTS); |
+ /* initialize number of fragments to zero */ |
+ priv->fragments.count = 0; |
+ /* is input fragments enabled? */ |
+ priv->fragments.enabled = |
+ (priv->base.init_flags & VPX_CODEC_USE_INPUT_FRAGMENTS); |
- /*post processing level initialized to do nothing */ |
+ /*post processing level initialized to do nothing */ |
+ } else { |
+ priv = (vpx_codec_alg_priv_t *)ctx->priv; |
} |
- else |
- { |
- priv = (vpx_codec_alg_priv_t *)ctx->priv; |
- } |
priv->yv12_frame_buffers.use_frame_threads = |
(ctx->priv->init_flags & VPX_CODEC_USE_FRAME_THREADING); |
@@ -138,11 +135,10 @@ |
if (priv->yv12_frame_buffers.use_frame_threads && |
((ctx->priv->init_flags & VPX_CODEC_USE_ERROR_CONCEALMENT) || |
- (ctx->priv->init_flags & VPX_CODEC_USE_INPUT_FRAGMENTS))) |
- { |
- /* row-based threading, error concealment, and input fragments will |
- * not be supported when using frame-based threading */ |
- res = VPX_CODEC_INVALID_PARAM; |
+ (ctx->priv->init_flags & VPX_CODEC_USE_INPUT_FRAGMENTS))) { |
+ /* row-based threading, error concealment, and input fragments will |
+ * not be supported when using frame-based threading */ |
+ res = VPX_CODEC_INVALID_PARAM; |
} |
return res; |