[FFmpeg-cvslog] mmaldec: initialize refcount using atomic_init()

Wan-Teh Chang git at videolan.org
Sat Apr 8 15:57:19 EEST 2017


ffmpeg | branch: master | Wan-Teh Chang <wtc at google.com> | Wed Nov 30 11:52:41 2016 -0800| [d82d5379caca21005d8906829b35361c4a65408e] | committer: Vittorio Giovara

mmaldec: initialize refcount using atomic_init()

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

Signed-off-by: Wan-Teh Chang <wtc at google.com>
Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d82d5379caca21005d8906829b35361c4a65408e
---

 libavcodec/mmaldec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 924bfb2..e64ddba 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;



More information about the ffmpeg-cvslog mailing list