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
eedbeb4c
Commit
eedbeb4c
authored
Jun 23, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msmpeg4: Remove some broken, commented-out cruft
parent
3c84eaae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
msmpeg4dec.c
libavcodec/msmpeg4dec.c
+0
-26
No files found.
libavcodec/msmpeg4dec.c
View file @
eedbeb4c
...
@@ -752,35 +752,9 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
...
@@ -752,35 +752,9 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
if
(
sign
)
level
=
-
level
;
if
(
sign
)
level
=
-
level
;
}
}
#if 0 // waste of time / this will detect very few errors
{
const int abs_level= FFABS(level);
const int run1= run - rl->max_run[last][abs_level] - run_diff;
if(abs_level<=MAX_LEVEL && run<=MAX_RUN){
if(abs_level <= rl->max_level[last][run]){
av_log(s->avctx, AV_LOG_ERROR, "illegal 3. esc, vlc encoding possible\n");
return DECODING_AC_LOST;
}
if(abs_level <= rl->max_level[last][run]*2){
av_log(s->avctx, AV_LOG_ERROR, "illegal 3. esc, esc 1 encoding possible\n");
return DECODING_AC_LOST;
}
if(run1>=0 && abs_level <= rl->max_level[last][run1]){
av_log(s->avctx, AV_LOG_ERROR, "illegal 3. esc, esc 2 encoding possible\n");
return DECODING_AC_LOST;
}
}
}
#endif
//level = level * qmul + (level>0) * qadd - (level<=0) * qadd ;
//level = level * qmul + (level>0) * qadd - (level<=0) * qadd ;
if
(
level
>
0
)
level
=
level
*
qmul
+
qadd
;
if
(
level
>
0
)
level
=
level
*
qmul
+
qadd
;
else
level
=
level
*
qmul
-
qadd
;
else
level
=
level
*
qmul
-
qadd
;
#if 0 // waste of time too :(
if(level>2048 || level<-2048){
av_log(s->avctx, AV_LOG_ERROR, "|level| overflow in 3. esc\n");
return DECODING_AC_LOST;
}
#endif
i
+=
run
+
1
;
i
+=
run
+
1
;
if
(
last
)
i
+=
192
;
if
(
last
)
i
+=
192
;
#ifdef ERROR_DETAILS
#ifdef ERROR_DETAILS
...
...
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