diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-05-24 22:59:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-25 04:08:34 +0200 |
commit | 895b616146a0d6091b09dab4752191b5234964d0 (patch) | |
tree | 347322d5563fde9968d2b2af0c03b0cd5a85a825 /libswscale/utils.c | |
parent | 8050dfdfb284874e3989301771e8011422e78c7a (diff) | |
download | ffmpeg-895b616146a0d6091b09dab4752191b5234964d0.tar.gz |
swscale: dont loose bits on planar >8bit yuv ind gray nput.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index ea44190ace..d227243fa3 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -890,7 +890,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) if (flags&SWS_PRINT_INFO) av_log(c, AV_LOG_INFO, "output width is not a multiple of 32 -> no MMX2 scaler\n"); } - if (usesHFilter) c->canMMX2BeUsed=0; + if (usesHFilter || isNBPS(c->srcFormat) || is16BPS(c->srcFormat)) c->canMMX2BeUsed=0; } else c->canMMX2BeUsed=0; |