mmaldec: Fix avpriv_atomic_get usage
authorJulian Scheel <julian@jusst.de>
Wed, 21 Oct 2015 07:00:33 +0000 (09:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 21 Oct 2015 13:01:36 +0000 (15:01 +0200)
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 <julian@jusst.de>
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mmaldec.c

index bb8f17b..13cc191 100644 (file)
@@ -165,7 +165,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;
 }