[FFmpeg-devel] [PATCH] lavc: fix build when optimizations are disabled

Michael Niedermayer michaelni at gmx.at
Tue Aug 28 20:39:23 CEST 2012


On Tue, Aug 28, 2012 at 07:21:05PM +0200, Stefano Sabatini wrote:
> On date Monday 2012-08-27 17:01:20 +0200, Michael Niedermayer encoded:
> > On Mon, Aug 27, 2012 at 01:22:20PM +0200, Stefano Sabatini wrote:
> > > ---
> > >  libavcodec/dnxhdenc.c      |    2 +-
> > >  libavcodec/mpegvideo.c     |    2 +-
> > >  libavcodec/mpegvideo_enc.c |    2 +-
> > >  3 files changed, 3 insertions(+), 3 deletions(-)
> > > 
> > > diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c
> > > index 24767fd..273186d 100644
> > > --- a/libavcodec/dnxhdenc.c
> > > +++ b/libavcodec/dnxhdenc.c
> > > @@ -294,7 +294,7 @@ static int dnxhd_encode_init(AVCodecContext *avctx)
> > >         ctx->block_width_l2 = 3;
> > >      }
> > >  
> > > -    if (ARCH_X86)
> > > +    if (ARCH_X86 && HAVE_MMX)
> > >          ff_dnxhdenc_init_x86(ctx);
> > 
> > IMHO its either mmx or x86 but calling it _x86 and then only using
> > when mmx is enabled isnt good
> > 
> > also HAVE_MMX implicates ARCH_X86
> 
> Simplified. This fixes compilation for me, and yes I agree _mmx seemed
> a more meaningful names but I don't feel like I want to introduce more
> potentially pointless renames.

LGTM

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120828/d21f875a/attachment.asc>


More information about the ffmpeg-devel mailing list