imgconvert: favor pixel formats without resolution loss
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Jul 2012 15:17:46 +0000 (17:17 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Jul 2012 15:22:17 +0000 (17:22 +0200)
Fixes Ticket1517

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/imgconvert.c

index 36b8f64..34493f6 100644 (file)
@@ -543,6 +543,7 @@ enum PixelFormat avcodec_find_best_pix_fmt2(enum PixelFormat dst_pix_fmt1, enum
         ~0, /* no loss first */
         ~FF_LOSS_ALPHA,
         ~FF_LOSS_RESOLUTION,
+        ~FF_LOSS_COLORSPACE,
         ~(FF_LOSS_COLORSPACE | FF_LOSS_RESOLUTION),
         ~FF_LOSS_COLORQUANT,
         ~FF_LOSS_DEPTH,