diff options
author | Denis Fortin <fortin@nerim.net> | 2007-05-16 12:57:27 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-05-16 12:57:27 +0000 |
commit | b8a997454464d1758f33cfe9ef05768e10f67be0 (patch) | |
tree | ce06716b3eb6acee49492b3979803396ee2253c0 /libavcodec/bitstream.c | |
parent | 9f17e13bfc897d024783e34f414c57f817bcb0df (diff) | |
download | ffmpeg-b8a997454464d1758f33cfe9ef05768e10f67be0.tar.gz |
printf --> av_log, patch by Denis Fortin, fortin nerim net
Originally committed as revision 9038 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bitstream.c')
-rw-r--r-- | libavcodec/bitstream.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c index 20b5f81699..41ab370aad 100644 --- a/libavcodec/bitstream.c +++ b/libavcodec/bitstream.c @@ -113,7 +113,7 @@ static int build_table(VLC *vlc, int table_nb_bits, table_size = 1 << table_nb_bits; table_index = alloc_table(vlc, table_size, flags & INIT_VLC_USE_STATIC); #ifdef DEBUG_VLC - printf("new table index=%d size=%d code_prefix=%x n=%d\n", + av_log(NULL,AV_LOG_DEBUG,"new table index=%d size=%d code_prefix=%x n=%d\n", table_index, table_size, code_prefix, n_prefix); #endif if (table_index < 0) @@ -133,7 +133,7 @@ static int build_table(VLC *vlc, int table_nb_bits, if (n <= 0) continue; #if defined(DEBUG_VLC) && 0 - printf("i=%d n=%d code=0x%x\n", i, n, code); + av_log(NULL,AV_LOG_DEBUG,"i=%d n=%d code=0x%x\n", i, n, code); #endif /* if code matches the prefix, it is in the table */ n -= n_prefix; @@ -165,7 +165,7 @@ static int build_table(VLC *vlc, int table_nb_bits, n -= table_nb_bits; j = (code >> ((flags & INIT_VLC_LE) ? n_prefix : n)) & ((1 << table_nb_bits) - 1); #ifdef DEBUG_VLC - printf("%4x: n=%d (subtable)\n", + av_log(NULL,AV_LOG_DEBUG,"%4x: n=%d (subtable)\n", j, n); #endif /* compute table size */ @@ -244,7 +244,7 @@ int init_vlc(VLC *vlc, int nb_bits, int nb_codes, } #ifdef DEBUG_VLC - printf("build table nb_codes=%d\n", nb_codes); + av_log(NULL,AV_LOG_DEBUG,"build table nb_codes=%d\n", nb_codes); #endif if (build_table(vlc, nb_bits, nb_codes, |