Commit d82d5379 authored by Wan-Teh Chang's avatar Wan-Teh Chang Committed by Vittorio Giovara

mmaldec: initialize refcount using atomic_init()

This is how we initialize refcount in libavutil/buffer.c.
Signed-off-by: 's avatarWan-Teh Chang <wtc@google.com>
Signed-off-by: 's avatarVittorio Giovara <vittorio.giovara@gmail.com>
parent 518a2247
...@@ -281,7 +281,7 @@ static int ffmal_update_format(AVCodecContext *avctx) ...@@ -281,7 +281,7 @@ static int ffmal_update_format(AVCodecContext *avctx)
ret = AVERROR(ENOMEM); ret = AVERROR(ENOMEM);
goto fail; goto fail;
} }
atomic_store(&ctx->pool_out->refcount, 1); atomic_init(&ctx->pool_out->refcount, 1);
if (!format_out) if (!format_out)
goto fail; goto fail;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment