mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-06 06:44:29 +00:00
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>
This commit is contained in:
parent
518a22471e
commit
d82d5379ca
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user