summaryrefslogtreecommitdiff
path: root/libswscale/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r--libswscale/utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 5c40f00747..2e89a2d992 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -1043,10 +1043,10 @@ static int handle_xyz(enum AVPixelFormat *format)
static void handle_formats(SwsContext *c)
{
- c->src0Alpha = handle_0alpha(&c->srcFormat);
- c->dst0Alpha = handle_0alpha(&c->dstFormat);
- c->srcXYZ = handle_xyz(&c->srcFormat);
- c->dstXYZ = handle_xyz(&c->dstFormat);
+ c->src0Alpha |= handle_0alpha(&c->srcFormat);
+ c->dst0Alpha |= handle_0alpha(&c->dstFormat);
+ c->srcXYZ |= handle_xyz(&c->srcFormat);
+ c->dstXYZ |= handle_xyz(&c->dstFormat);
}
SwsContext *sws_alloc_context(void)