1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Do not set swscale sizeFactor to -1.

Fixes ticket #3495.
This commit is contained in:
Carl Eugen Hoyos 2014-03-25 15:46:35 +01:00
parent 3e6016622e
commit e6fe804bdd

View File

@ -367,7 +367,7 @@ static av_cold int initFilter(int16_t **outFilter, int32_t **filterPos,
int sizeFactor = -1; int sizeFactor = -1;
for (i = 0; i < FF_ARRAY_ELEMS(scale_algorithms); i++) { 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; sizeFactor = scale_algorithms[i].size_factor;
break; break;
} }