Commit b1d5d5a8 authored by kostya's avatar kostya

Add 32-bit RGB support to TIFF decoder and extend a bit 'unsupported format' message

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18755 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0b03efe6
...@@ -261,8 +261,16 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t * ...@@ -261,8 +261,16 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *
return -1; return -1;
} }
break; 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: 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; return -1;
} }
if(s->width != s->avctx->width || s->height != s->avctx->height){ if(s->width != s->avctx->width || s->height != s->avctx->height){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment