aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-03-25 15:46:35 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-03-25 15:46:35 +0100
commite6fe804bdd6272de633ecf3fc73e1aba6746f641 (patch)
tree22d837958e1ebfb719fdd5bbf0d1a7e4d69c3ac7 /libswscale
parent3e6016622e6fc5967e55d41e8074558d43bc33c0 (diff)
downloadffmpeg-e6fe804bdd6272de633ecf3fc73e1aba6746f641.tar.gz
Do not set swscale sizeFactor to -1.
Fixes ticket #3495.
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 483b0b24e9..af22cfac54 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -367,7 +367,7 @@ static av_cold int initFilter(int16_t **outFilter, int32_t **filterPos,
int sizeFactor = -1;
for (i = 0; i < FF_ARRAY_ELEMS(scale_algorithms); i++) {
- if (flags & scale_algorithms[i].flag) {
+ if (flags & scale_algorithms[i].flag && scale_algorithms[i].size_factor > 0) {
sizeFactor = scale_algorithms[i].size_factor;
break;
}