diff options
author | Clément Bœsch <u@pkh.me> | 2017-04-08 15:52:30 +0300 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2017-04-08 15:52:30 +0300 |
commit | b853d6aa5b918c6ca4786f14cd1fa8a1c4254fe9 (patch) | |
tree | dedef8230160bbc0b8945ff588d4b76297d6ba20 /libavcodec/mmaldec.c | |
parent | efb0ea2af4a8afd51bd459aa9c1d6c51a1cba271 (diff) | |
parent | d82d5379caca21005d8906829b35361c4a65408e (diff) |
Merge commit 'd82d5379caca21005d8906829b35361c4a65408e'
* commit 'd82d5379caca21005d8906829b35361c4a65408e':
mmaldec: initialize refcount using atomic_init()
Merged-by: Clément Bœsch <u@pkh.me>
Diffstat (limited to 'libavcodec/mmaldec.c')
-rw-r--r-- | libavcodec/mmaldec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c index 81fcebce23..0b1195dc3e 100644 --- a/libavcodec/mmaldec.c +++ b/libavcodec/mmaldec.c @@ -283,7 +283,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; |