[FFmpeg-devel] [PATCH] lavc: fix build when optimizations are disabled
Michael Niedermayer
michaelni at gmx.at
Mon Aug 27 17:01:20 CEST 2012
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
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The real ebay dictionary, page 1
"Used only once" - "Some unspecified defect prevented a second use"
"In good condition" - "Can be repaird by experienced expert"
"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
-------------- 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/20120827/1781e151/attachment.asc>
More information about the ffmpeg-devel
mailing list