aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorWan-Teh Chang <wtc@google.com>2016-11-30 11:52:41 -0800
committerVittorio Giovara <vittorio.giovara@gmail.com>2016-12-02 12:16:26 -0500
commitd82d5379caca21005d8906829b35361c4a65408e (patch)
treecfb38249bbab3b3ac4e9dc16cea7eecf694cf9ab /libavcodec
parent518a22471e40604a158180a0660aabeeec65e07f (diff)
downloadffmpeg-d82d5379caca21005d8906829b35361c4a65408e.tar.gz
mmaldec: initialize refcount using atomic_init()
This is how we initialize refcount in libavutil/buffer.c. Signed-off-by: Wan-Teh Chang <wtc@google.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mmaldec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 924bfb2e26..e64ddbabce 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -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;