Mercurial > libavcodec.hg
changeset 10682:aa8bebc96764 libavcodec
Use PIX_FMT_NONE for -1 when enum PixelFormat is expected (fixes two icc warnings).
author | cehoyos |
---|---|
date | Mon, 14 Dec 2009 11:18:28 +0000 |
parents | 997692df50c1 |
children | e5fac8ac71f6 |
files | imgconvert.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/imgconvert.c Sun Dec 13 15:40:26 2009 +0000 +++ b/imgconvert.c Mon Dec 14 11:18:28 2009 +0000 @@ -902,7 +902,7 @@ enum PixelFormat dst_pix_fmt; /* find exact color match with smallest size */ - dst_pix_fmt = -1; + dst_pix_fmt = PIX_FMT_NONE; min_dist = 0x7fffffff; for(i = 0;i < PIX_FMT_NB; i++) { if (pix_fmt_mask & (1ULL << i)) { @@ -945,7 +945,7 @@ if (loss_mask == 0) break; } - return -1; + return PIX_FMT_NONE; found: if (loss_ptr) *loss_ptr = avcodec_get_pix_fmt_loss(dst_pix_fmt, src_pix_fmt, has_alpha);