summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorMartin Vignali <martin.vignali@gmail.com>2018-08-20 15:31:01 +0200
committerMartin Vignali <martin.vignali@gmail.com>2018-08-22 11:36:15 +0200
commitbdd67546482bd3bdd67b4ae2d855fd1ff989d0d0 (patch)
tree4029bbb63d1b599b0527e2bf5c8673d6f2846867 /libswscale
parent3af1c4ea7d18c54738cd93f09b376d2228fdbce0 (diff)
downloadffmpeg-streaming-bdd67546482bd3bdd67b4ae2d855fd1ff989d0d0.zip
ffmpeg-streaming-bdd67546482bd3bdd67b4ae2d855fd1ff989d0d0.tar.gz
swscale/swscale : small cosmetic
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 3ae16be..4069550 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -75,7 +75,7 @@ static void hScale16To19_c(SwsContext *c, int16_t *_dst, int dstW,
int sh = bits - 4;
if ((isAnyRGB(c->srcFormat) || c->srcFormat==AV_PIX_FMT_PAL8) && desc->comp[0].depth<16) {
- sh= 9;
+ sh = 9;
} else if (desc->flags & AV_PIX_FMT_FLAG_FLOAT) { /* float input are process like uint 16bpc */
sh = 16 - 1 - 4;
}
@@ -103,7 +103,7 @@ static void hScale16To15_c(SwsContext *c, int16_t *dst, int dstW,
int sh = desc->comp[0].depth - 1;
if (sh<15) {
- sh= isAnyRGB(c->srcFormat) || c->srcFormat==AV_PIX_FMT_PAL8 ? 13 : (desc->comp[0].depth - 1);
+ sh = isAnyRGB(c->srcFormat) || c->srcFormat==AV_PIX_FMT_PAL8 ? 13 : (desc->comp[0].depth - 1);
} else if (desc->flags & AV_PIX_FMT_FLAG_FLOAT) { /* float input are process like uint 16bpc */
sh = 16 - 1;
}
OpenPOWER on IntegriCloud