summaryrefslogtreecommitdiff
path: root/libswscale
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2020-02-15 10:07:51 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2020-03-11 22:55:49 +0100
commit5f8c38345247be4baa6d6f0b4ef5f5ce94c1ba7d (patch)
tree90878e91d3e445c48b3cb24d454bca71dce1087d /libswscale
parentb3c46e26aa283bf8e95451f1d4b1810a6f4e1ade (diff)
lsws/input: Do not change transparency range.
Fixes ticket #8509.
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/input.c6
-rw-r--r--libswscale/version.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/input.c b/libswscale/input.c
index 8346cf4da6..099661cb6d 100644
--- a/libswscale/input.c
+++ b/libswscale/input.c
@@ -437,7 +437,7 @@ static void abgrToA_c(uint8_t *_dst, const uint8_t *src, const uint8_t *unused1,
int16_t *dst = (int16_t *)_dst;
int i;
for (i=0; i<width; i++) {
- dst[i]= src[4*i]<<6;
+ dst[i]= src[4*i]<<6 | src[4*i]>>2;
}
}
@@ -446,7 +446,7 @@ static void rgbaToA_c(uint8_t *_dst, const uint8_t *src, const uint8_t *unused1,
int16_t *dst = (int16_t *)_dst;
int i;
for (i=0; i<width; i++) {
- dst[i]= src[4*i+3]<<6;
+ dst[i]= src[4*i+3]<<6 | src[4*i+3]>>2;
}
}
@@ -457,7 +457,7 @@ static void palToA_c(uint8_t *_dst, const uint8_t *src, const uint8_t *unused1,
for (i=0; i<width; i++) {
int d= src[i];
- dst[i]= (pal[d] >> 24)<<6;
+ dst[i]= (pal[d] >> 24)<<6 | pal[d]>>26;
}
}
diff --git a/libswscale/version.h b/libswscale/version.h
index cc434c0439..1dbb5618af 100644
--- a/libswscale/version.h
+++ b/libswscale/version.h
@@ -28,7 +28,7 @@
#define LIBSWSCALE_VERSION_MAJOR 5
#define LIBSWSCALE_VERSION_MINOR 6
-#define LIBSWSCALE_VERSION_MICRO 100
+#define LIBSWSCALE_VERSION_MICRO 101
#define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
LIBSWSCALE_VERSION_MINOR, \