[FFmpeg-cvslog] r18755 - trunk/libavcodec/tiff.c
kostya
subversion
Wed May 6 08:49:04 CEST 2009
Author: kostya
Date: Wed May 6 08:49:04 2009
New Revision: 18755
Log:
Add 32-bit RGB support to TIFF decoder and extend a bit 'unsupported format' message
Modified:
trunk/libavcodec/tiff.c
Modified: trunk/libavcodec/tiff.c
==============================================================================
--- trunk/libavcodec/tiff.c Wed May 6 07:40:43 2009 (r18754)
+++ trunk/libavcodec/tiff.c Wed May 6 08:49:04 2009 (r18755)
@@ -261,8 +261,16 @@ static int tiff_decode_tag(TiffContext *
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){
More information about the ffmpeg-cvslog
mailing list