swscale: don't show full-chroma-int warning for non-RGB output.

Non-RGB output always uses full chroma interpolation.
This commit is contained in:
Ronald S. Bultje
2012-01-03 20:01:21 -08:00
parent f910dbcdb0
commit 9ea3501d87
2 changed files with 33 additions and 30 deletions
+1
View File
@@ -829,6 +829,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter)
// reuse chroma for 2 pixels RGB/BGR unless user wants full chroma interpolation
if (flags & SWS_FULL_CHR_H_INT &&
isAnyRGB(dstFormat) &&
dstFormat != PIX_FMT_RGBA &&
dstFormat != PIX_FMT_ARGB &&
dstFormat != PIX_FMT_BGRA &&