sws: fix rgb -> 16bit

This commit is contained in:
Michael Niedermayer
2011-07-03 02:08:45 +02:00
parent b5ff61695f
commit 987e4c1787
2 changed files with 8 additions and 5 deletions

View File

@@ -2438,6 +2438,6 @@ static av_cold void RENAME(sws_init_swScale)(SwsContext *c)
}
}
#endif /* !COMPILE_TEMPLATE_MMX2 */
if(isAnyRGB(c->srcFormat) && av_pix_fmt_descriptors[c->srcFormat].comp[0].depth_minus1<15)
if(isAnyRGB(c->srcFormat) && av_pix_fmt_descriptors[c->srcFormat].comp[0].depth_minus1<15 && c->scalingBpp == 8)
c->hScale16= RENAME(hScale16);
}