Skip to content
Snippets Groups Projects
Commit d82d5379 authored by Wan-Teh Chang's avatar Wan-Teh Chang Committed by Vittorio Giovara
Browse files

mmaldec: initialize refcount using atomic_init()


This is how we initialize refcount in libavutil/buffer.c.

Signed-off-by: default avatarWan-Teh Chang <wtc@google.com>
Signed-off-by: default avatarVittorio Giovara <vittorio.giovara@gmail.com>
parent 518a2247
No related branches found
No related tags found
No related merge requests found
......@@ -281,7 +281,7 @@ static int ffmal_update_format(AVCodecContext *avctx)
ret = AVERROR(ENOMEM);
goto fail;
}
atomic_store(&ctx->pool_out->refcount, 1);
atomic_init(&ctx->pool_out->refcount, 1);
if (!format_out)
goto fail;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment