Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b372f673
Commit
b372f673
authored
May 09, 2014
by
Matthew Lindner
Committed by
Michael Niedermayer
May 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: better level/index printing
parent
398e3a59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
get_bits.h
libavcodec/get_bits.h
+3
-3
mpeg4videodec.c
libavcodec/mpeg4videodec.c
+1
-1
No files found.
libavcodec/get_bits.h
View file @
b372f673
...
@@ -651,13 +651,13 @@ static inline int get_vlc_trace(GetBitContext *s, VLC_TYPE (*table)[2],
...
@@ -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) \
...
...
libavcodec/mpeg4videodec.c
View file @
b372f673
...
@@ -1167,7 +1167,7 @@ static inline int mpeg4_decode_block(Mpeg4DecContext *ctx, int16_t *block,
...
@@ -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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment