comparison targa.c @ 4128:2e93c877d264 libavcodec

Use bpp from header in error message
author kostya
date Fri, 03 Nov 2006 04:42:11 +0000
parents 54c7481b381e
children c9e0315f9954
comparison
equal deleted inserted replaced
4127:d011a097bb85 4128:2e93c877d264
127 break; 127 break;
128 case 24: 128 case 24:
129 avctx->pix_fmt = PIX_FMT_BGR24; 129 avctx->pix_fmt = PIX_FMT_BGR24;
130 break; 130 break;
131 default: 131 default:
132 av_log(avctx, AV_LOG_ERROR, "Bit depth %i is not supported\n", avctx->bits_per_sample); 132 av_log(avctx, AV_LOG_ERROR, "Bit depth %i is not supported\n", s->bpp);
133 return -1; 133 return -1;
134 } 134 }
135 135
136 if(s->picture.data[0]) 136 if(s->picture.data[0])
137 avctx->release_buffer(avctx, &s->picture); 137 avctx->release_buffer(avctx, &s->picture);