Mercurial > libavcodec.hg
changeset 9611:8074df653392 libavcodec
Add 32-bit RGB support to TIFF decoder and extend a bit 'unsupported format' message
author | kostya |
---|---|
date | Wed, 06 May 2009 06:49:04 +0000 |
parents | ad0e96494f1e |
children | de33a215fd84 |
files | tiff.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tiff.c Wed May 06 05:40:43 2009 +0000 +++ b/tiff.c Wed May 06 06:49:04 2009 +0000 @@ -261,8 +261,16 @@ return -1; } break; + case 32: + if(count == 4){ + s->avctx->pix_fmt = PIX_FMT_RGBA; + }else{ + av_log(s->avctx, AV_LOG_ERROR, "This format is not supported (bpp=%d, %d components)\n", s->bpp, count); + return -1; + } + break; default: - av_log(s->avctx, AV_LOG_ERROR, "This format is not supported (bpp=%i)\n", s->bpp); + av_log(s->avctx, AV_LOG_ERROR, "This format is not supported (bpp=%d, %d components)\n", s->bpp, count); return -1; } if(s->width != s->avctx->width || s->height != s->avctx->height){