mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec: better level/index printing
This commit is contained in:
parent
398e3a591f
commit
b372f67342
|
@ -651,13 +651,13 @@ static inline int get_vlc_trace(GetBitContext *s, VLC_TYPE (*table)[2],
|
||||||
\
|
\
|
||||||
GET_RL_VLC_INTERNAL(level, run, name, gb, table, bits,max_depth, need_update); \
|
GET_RL_VLC_INTERNAL(level, run, name, gb, table, bits,max_depth, need_update); \
|
||||||
\
|
\
|
||||||
len = name ## _index - pos; \
|
len = name ## _index - pos + 1; \
|
||||||
show = show >> (24 - len); \
|
show = show >> (24 - len); \
|
||||||
\
|
\
|
||||||
print_bin(show, len); \
|
print_bin(show, len); \
|
||||||
\
|
\
|
||||||
av_log(NULL, AV_LOG_DEBUG, "%5d %2d %3d/%3d RLV @%5d in %s %s:%d\n",\
|
av_log(NULL, AV_LOG_DEBUG, "%5d %2d %3d/%-3d rlv @%5d in %s %s:%d\n",\
|
||||||
show, len, run, level, pos, __FILE__, __PRETTY_FUNCTION__, __LINE__);\
|
show, len, run-1, level, pos, __FILE__, __PRETTY_FUNCTION__, __LINE__);\
|
||||||
} while (0) \
|
} while (0) \
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1167,7 +1167,7 @@ static inline int mpeg4_decode_block(Mpeg4DecContext *ctx, int16_t *block,
|
||||||
level = (level ^ SHOW_SBITS(re, &s->gb, 1)) - SHOW_SBITS(re, &s->gb, 1);
|
level = (level ^ SHOW_SBITS(re, &s->gb, 1)) - SHOW_SBITS(re, &s->gb, 1);
|
||||||
LAST_SKIP_BITS(re, &s->gb, 1);
|
LAST_SKIP_BITS(re, &s->gb, 1);
|
||||||
}
|
}
|
||||||
tprintf(s->avctx, "Block: run:%d, level:%d, index:%d EOB:%d\n", run&63, level, i&63, i>62);
|
tprintf(s->avctx, "dct[%d][%d] = %- 4d end?:%d\n", scan_table[i&63]&7, scan_table[i&63] >> 3, level, i>62);
|
||||||
if (i > 62) {
|
if (i > 62) {
|
||||||
i -= 192;
|
i -= 192;
|
||||||
if (i & (~63)) {
|
if (i & (~63)) {
|
||||||
|
|
Loading…
Reference in New Issue