comparison common.c @ 1602:fdb8244da1e5 libavcodec

av_log patch(2 of ?) by (Michel Bardiaux <mbardiaux at peaktime dot be>)
author michael
date Mon, 03 Nov 2003 18:06:54 +0000
parents 932d306bf1dc
children 806afb8e9085
comparison
equal deleted inserted replaced
1601:a70c07e13e8e 1602:fdb8244da1e5
280 /* no need to add another table */ 280 /* no need to add another table */
281 j = (code << (table_nb_bits - n)) & (table_size - 1); 281 j = (code << (table_nb_bits - n)) & (table_size - 1);
282 nb = 1 << (table_nb_bits - n); 282 nb = 1 << (table_nb_bits - n);
283 for(k=0;k<nb;k++) { 283 for(k=0;k<nb;k++) {
284 #ifdef DEBUG_VLC 284 #ifdef DEBUG_VLC
285 av_log(AV_LOG_DEBUG, "%4x: code=%d n=%d\n", 285 av_log(NULL, AV_LOG_DEBUG, "%4x: code=%d n=%d\n",
286 j, i, n); 286 j, i, n);
287 #endif 287 #endif
288 if (table[j][1] /*bits*/ != 0) { 288 if (table[j][1] /*bits*/ != 0) {
289 av_log(NULL, AV_LOG_ERROR, "incorrect codes\n"); 289 av_log(NULL, AV_LOG_ERROR, "incorrect codes\n");
290 av_abort(); 290 av_abort();