Module: libav
Branch: master
Commit: 2689bb115ca64921789092148deaf213a0d94d2e

Author:    Julian Scheel <[email protected]>
Committer: Anton Khirnov <[email protected]>
Date:      Thu Apr 14 12:21:18 2016 +0200

mmaldec: Fix avpriv_atomic_get usage

There is no avpriv_atomic_get, instead avpriv_atomic_int_get is to be used for
integers. This fixes building mmaldec.

Signed-off-by: Julian Scheel <[email protected]>
Reviewed-by: wm4 <[email protected]>
Signed-off-by: Anton Khirnov <[email protected]>

---

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

diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
index 5986658..4b980d2 100644
--- a/libavcodec/mmaldec.c
+++ b/libavcodec/mmaldec.c
@@ -166,7 +166,7 @@ static void ffmmal_stop_decoder(AVCodecContext *avctx)
     }
     ctx->waiting_buffers_tail = NULL;
 
-    av_assert0(avpriv_atomic_get(&ctx->packets_buffered) == 0);
+    av_assert0(avpriv_atomic_int_get(&ctx->packets_buffered) == 0);
 
     ctx->frames_output = ctx->eos_received = ctx->eos_sent = ctx->packets_sent 
= ctx->extradata_sent = 0;
 }

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to