Mercurial > libavcodec.hg
comparison targa.c @ 4494:ce643a22f049 libavcodec
Replace deprecated PIX_FMT names by the newer variants.
author | diego |
---|---|
date | Wed, 07 Feb 2007 01:48:09 +0000 |
parents | 05e932ddaaa9 |
children | 2b72f9bc4f06 |
comparison
equal
deleted
inserted
replaced
4493:e78c415815f3 | 4494:ce643a22f049 |
---|---|
130 break; | 130 break; |
131 case 24: | 131 case 24: |
132 avctx->pix_fmt = PIX_FMT_BGR24; | 132 avctx->pix_fmt = PIX_FMT_BGR24; |
133 break; | 133 break; |
134 case 32: | 134 case 32: |
135 avctx->pix_fmt = PIX_FMT_RGBA32; | 135 avctx->pix_fmt = PIX_FMT_RGB32; |
136 break; | 136 break; |
137 default: | 137 default: |
138 av_log(avctx, AV_LOG_ERROR, "Bit depth %i is not supported\n", s->bpp); | 138 av_log(avctx, AV_LOG_ERROR, "Bit depth %i is not supported\n", s->bpp); |
139 return -1; | 139 return -1; |
140 } | 140 } |