aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-08-14 19:05:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-08-14 19:34:48 +0200
commit66bb5cd5927ad2c198c68eb73bf60e7255185ca1 (patch)
tree86354ab138611b955697b32dae9fa0b5246be9d1 /libswscale/utils.c
parent3652409f5b45195a5907f1f5b860f87b1b64bed4 (diff)
downloadffmpeg-66bb5cd5927ad2c198c68eb73bf60e7255185ca1.tar.gz
sws: remove hScale16N() and use ronalds reformated version of it.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r--libswscale/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 54a4c0d42f..c112fa3264 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -848,7 +848,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter)
c->dstBpc = 1 + av_pix_fmt_descriptors[dstFormat].comp[0].depth_minus1;
if (c->dstBpc < 8)
c->dstBpc = 8;
- if (isAnyRGB(srcFormat) && c->dstBpc == 16)
+ if (isAnyRGB(srcFormat) || srcFormat == PIX_FMT_PAL8)
c->srcBpc = 16;
if (c->dstBpc == 16)
dst_stride <<= 1;