summaryrefslogtreecommitdiff
path: root/libavcodec/imgconvert.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-18 17:17:46 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-18 17:22:17 +0200
commit31a192f387909a3cf158b64071dfcdf8ff54845a (patch)
tree4e1ef3bfec3af68603f4e6e4d44e2a3892cf3c5b /libavcodec/imgconvert.c
parentef1c0b52953e4103956e5646880bf8c5681c33e2 (diff)
imgconvert: favor pixel formats without resolution loss
Fixes Ticket1517 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r--libavcodec/imgconvert.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 36b8f6482e..34493f619a 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -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,