comparison lclenc.c @ 7068:6497251e2fde libavcodec

Improve an lclenc.c error message in case of unsupported input pixel format.
author stefano
date Thu, 19 Jun 2008 10:12:15 +0000
parents e943e1409077
children 4525dcd81357
comparison
equal deleted inserted replaced
7067:4630168a70d5 7068:6497251e2fde
165 c->imgtype = IMGTYPE_RGB24; 165 c->imgtype = IMGTYPE_RGB24;
166 c->decomp_size = avctx->width * avctx->height * 3; 166 c->decomp_size = avctx->width * avctx->height * 3;
167 avctx->bits_per_sample= 24; 167 avctx->bits_per_sample= 24;
168 break; 168 break;
169 default: 169 default:
170 av_log(avctx, AV_LOG_ERROR, "Format %d not supported\n", avctx->pix_fmt); 170 av_log(avctx, AV_LOG_ERROR, "Input pixel format %s not supported\n", avcodec_get_pix_fmt_name(avctx->pix_fmt));
171 return -1; 171 return -1;
172 } 172 }
173 173
174 ((uint8_t*)avctx->extradata)[0]= 4; 174 ((uint8_t*)avctx->extradata)[0]= 4;
175 ((uint8_t*)avctx->extradata)[1]= 0; 175 ((uint8_t*)avctx->extradata)[1]= 0;