[FFmpeg-devel] [PATCH] mmaldec: Fix avpriv_atomic_get usage
wm4
nfxjfg at googlemail.com
Wed Oct 21 11:04:39 CEST 2015
On Wed, 21 Oct 2015 09:00:33 +0200
Julian Scheel <julian at jusst.de> wrote:
> 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 at jusst.de>
> ---
> libavcodec/mmaldec.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c
> index bb8f17b..13cc191 100644
> --- a/libavcodec/mmaldec.c
> +++ b/libavcodec/mmaldec.c
> @@ -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;
> }
Looks good. My original patch used assert(), which I now realized was
unfortunately completely disabled.
More information about the ffmpeg-devel
mailing list