[FFmpeg-devel] [PATCH] mmaldec: Fix avpriv_atomic_get usage

Michael Niedermayer michael at niedermayer.cc
Wed Oct 21 15:17:35 CEST 2015


On Wed, Oct 21, 2015 at 11:04:39AM +0200, wm4 wrote:
> 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.

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151021/e5398fae/attachment.sig>


More information about the ffmpeg-devel mailing list