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
4f98bb7b
Commit
4f98bb7b
authored
Jun 23, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msmpeg4: Remove commented-out debug logging code
parent
eedbeb4c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
msmpeg4dec.c
libavcodec/msmpeg4dec.c
+0
-25
No files found.
libavcodec/msmpeg4dec.c
View file @
4f98bb7b
...
@@ -627,7 +627,6 @@ static int msmpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr)
...
@@ -627,7 +627,6 @@ static int msmpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr)
return
level
;
return
level
;
}
}
//#define ERROR_DETAILS
int
ff_msmpeg4_decode_block
(
MpegEncContext
*
s
,
int16_t
*
block
,
int
ff_msmpeg4_decode_block
(
MpegEncContext
*
s
,
int16_t
*
block
,
int
n
,
int
coded
,
const
uint8_t
*
scan_table
)
int
n
,
int
coded
,
const
uint8_t
*
scan_table
)
{
{
...
@@ -757,12 +756,6 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
...
@@ -757,12 +756,6 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
else
level
=
level
*
qmul
-
qadd
;
else
level
=
level
*
qmul
-
qadd
;
i
+=
run
+
1
;
i
+=
run
+
1
;
if
(
last
)
i
+=
192
;
if
(
last
)
i
+=
192
;
#ifdef ERROR_DETAILS
if
(
run
==
66
)
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"illegal vlc code in ESC3 level=%d
\n
"
,
level
);
else
if
((
i
>
62
&&
i
<
192
)
||
i
>
192
+
63
)
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"run overflow in ESC3 i=%d run=%d level=%d
\n
"
,
i
,
run
,
level
);
#endif
}
else
{
}
else
{
/* second escape */
/* second escape */
SKIP_BITS
(
re
,
&
s
->
gb
,
2
);
SKIP_BITS
(
re
,
&
s
->
gb
,
2
);
...
@@ -770,12 +763,6 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
...
@@ -770,12 +763,6 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
i
+=
run
+
rl
->
max_run
[
run
>>
7
][
level
/
qmul
]
+
run_diff
;
//FIXME opt indexing
i
+=
run
+
rl
->
max_run
[
run
>>
7
][
level
/
qmul
]
+
run_diff
;
//FIXME opt indexing
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
);
#ifdef ERROR_DETAILS
if
(
run
==
66
)
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"illegal vlc code in ESC2 level=%d
\n
"
,
level
);
else
if
((
i
>
62
&&
i
<
192
)
||
i
>
192
+
63
)
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"run overflow in ESC2 i=%d run=%d level=%d
\n
"
,
i
,
run
,
level
);
#endif
}
}
}
else
{
}
else
{
/* first escape */
/* first escape */
...
@@ -785,23 +772,11 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
...
@@ -785,23 +772,11 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
level
=
level
+
rl
->
max_level
[
run
>>
7
][(
run
-
1
)
&
63
]
*
qmul
;
//FIXME opt indexing
level
=
level
+
rl
->
max_level
[
run
>>
7
][(
run
-
1
)
&
63
]
*
qmul
;
//FIXME opt indexing
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
);
#ifdef ERROR_DETAILS
if
(
run
==
66
)
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"illegal vlc code in ESC1 level=%d
\n
"
,
level
);
else
if
((
i
>
62
&&
i
<
192
)
||
i
>
192
+
63
)
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"run overflow in ESC1 i=%d run=%d level=%d
\n
"
,
i
,
run
,
level
);
#endif
}
}
}
else
{
}
else
{
i
+=
run
;
i
+=
run
;
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
);
#ifdef ERROR_DETAILS
if
(
run
==
66
)
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"illegal vlc code level=%d
\n
"
,
level
);
else
if
((
i
>
62
&&
i
<
192
)
||
i
>
192
+
63
)
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"run overflow i=%d run=%d level=%d
\n
"
,
i
,
run
,
level
);
#endif
}
}
if
(
i
>
62
){
if
(
i
>
62
){
i
-=
192
;
i
-=
192
;
...
...
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