]> git.sesse.net Git - ffmpeg/commitdiff
swscale/swscale : small cosmetic
authorMartin Vignali <martin.vignali@gmail.com>
Mon, 20 Aug 2018 13:31:01 +0000 (15:31 +0200)
committerMartin Vignali <martin.vignali@gmail.com>
Wed, 22 Aug 2018 09:36:15 +0000 (11:36 +0200)
libswscale/swscale.c

index 3ae16bef7d27db0796ea927e24f2a8b7e70c5d4c..40695503ad20479f255123cb36e923a447f2df8f 100644 (file)
@@ -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;
     }