comparison flacdec.c @ 8652:1a88ffbd3233 libavcodec

flacdec: change several AV_LOG_DEBUG to AV_LOG_ERROR
author jbr
date Sat, 24 Jan 2009 16:03:17 +0000
parents 7b19ec801069
children cc6f01be6614
comparison
equal deleted inserted replaced
8651:7b19ec801069 8652:1a88ffbd3233
223 int i, tmp, partition, method_type, rice_order; 223 int i, tmp, partition, method_type, rice_order;
224 int sample = 0, samples; 224 int sample = 0, samples;
225 225
226 method_type = get_bits(&s->gb, 2); 226 method_type = get_bits(&s->gb, 2);
227 if (method_type > 1){ 227 if (method_type > 1){
228 av_log(s->avctx, AV_LOG_DEBUG, "illegal residual coding method %d\n", method_type); 228 av_log(s->avctx, AV_LOG_ERROR, "illegal residual coding method %d\n", method_type);
229 return -1; 229 return -1;
230 } 230 }
231 231
232 rice_order = get_bits(&s->gb, 4); 232 rice_order = get_bits(&s->gb, 4);
233 233
326 } 326 }
327 327
328 coeff_prec = get_bits(&s->gb, 4) + 1; 328 coeff_prec = get_bits(&s->gb, 4) + 1;
329 if (coeff_prec == 16) 329 if (coeff_prec == 16)
330 { 330 {
331 av_log(s->avctx, AV_LOG_DEBUG, "invalid coeff precision\n"); 331 av_log(s->avctx, AV_LOG_ERROR, "invalid coeff precision\n");
332 return -1; 332 return -1;
333 } 333 }
334 qlevel = get_sbits(&s->gb, 5); 334 qlevel = get_sbits(&s->gb, 5);
335 if(qlevel < 0){ 335 if(qlevel < 0){
336 av_log(s->avctx, AV_LOG_DEBUG, "qlevel %d not supported, maybe buggy stream\n", qlevel); 336 av_log(s->avctx, AV_LOG_ERROR, "qlevel %d not supported, maybe buggy stream\n", qlevel);
337 return -1; 337 return -1;
338 } 338 }
339 339
340 for (i = 0; i < pred_order; i++) 340 for (i = 0; i < pred_order; i++)
341 { 341 {