mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
swscale: Fix compilation with --disable-mmx2.
Some MMX2 functions were being referenced without proper #ifdefs.
This commit is contained in:
parent
4e05830205
commit
97e057ff81
@ -182,6 +182,8 @@ void ff_sws_init_swScale_mmx(SwsContext *c)
|
||||
|
||||
if (cpu_flags & AV_CPU_FLAG_MMX)
|
||||
sws_init_swScale_MMX(c);
|
||||
#if HAVE_MMX2
|
||||
if (cpu_flags & AV_CPU_FLAG_MMX2)
|
||||
sws_init_swScale_MMX2(c);
|
||||
#endif
|
||||
}
|
||||
|
@ -72,12 +72,14 @@ SwsFunc ff_yuv2rgb_init_mmx(SwsContext *c)
|
||||
c->srcFormat != PIX_FMT_YUVA420P)
|
||||
return NULL;
|
||||
|
||||
if (HAVE_MMX2 && cpu_flags & AV_CPU_FLAG_MMX2) {
|
||||
#if HAVE_MMX2
|
||||
if (cpu_flags & AV_CPU_FLAG_MMX2) {
|
||||
switch (c->dstFormat) {
|
||||
case PIX_FMT_RGB24: return yuv420_rgb24_MMX2;
|
||||
case PIX_FMT_BGR24: return yuv420_bgr24_MMX2;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) {
|
||||
switch (c->dstFormat) {
|
||||
|
Loading…
Reference in New Issue
Block a user