mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-01 12:22:09 +00:00
swscale: fix build with --disable-swscale-alpha.
This commit is contained in:
parent
28734ac995
commit
f327bfa6dc
@ -82,15 +82,15 @@ SwsFunc ff_yuv2rgb_init_mmx(SwsContext *c)
|
|||||||
if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) {
|
if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) {
|
||||||
switch (c->dstFormat) {
|
switch (c->dstFormat) {
|
||||||
case PIX_FMT_RGB32:
|
case PIX_FMT_RGB32:
|
||||||
if (CONFIG_SWSCALE_ALPHA && c->srcFormat == PIX_FMT_YUVA420P) {
|
if (c->srcFormat == PIX_FMT_YUVA420P) {
|
||||||
#if HAVE_7REGS
|
#if HAVE_7REGS && CONFIG_SWSCALE_ALPHA
|
||||||
return yuva420_rgb32_MMX;
|
return yuva420_rgb32_MMX;
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
} else return yuv420_rgb32_MMX;
|
} else return yuv420_rgb32_MMX;
|
||||||
case PIX_FMT_BGR32:
|
case PIX_FMT_BGR32:
|
||||||
if (CONFIG_SWSCALE_ALPHA && c->srcFormat == PIX_FMT_YUVA420P) {
|
if (c->srcFormat == PIX_FMT_YUVA420P) {
|
||||||
#if HAVE_7REGS
|
#if HAVE_7REGS && CONFIG_SWSCALE_ALPHA
|
||||||
return yuva420_bgr32_MMX;
|
return yuva420_bgr32_MMX;
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user