[FFmpeg-cvslog] imgconvert: favor pixel formats without resolution loss
Michael Niedermayer
git at videolan.org
Wed Jul 18 17:56:23 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jul 18 17:17:46 2012 +0200| [31a192f387909a3cf158b64071dfcdf8ff54845a] | committer: Michael Niedermayer
imgconvert: favor pixel formats without resolution loss
Fixes Ticket1517
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=31a192f387909a3cf158b64071dfcdf8ff54845a
---
libavcodec/imgconvert.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 36b8f64..34493f6 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,
More information about the ffmpeg-cvslog
mailing list