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
c9cab022
Commit
c9cab022
authored
Dec 13, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4dec: restore error concealment functionality after merge
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
376ee206
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mpeg4video.h
libavcodec/mpeg4video.h
+1
-1
mpeg4videodec.c
libavcodec/mpeg4videodec.c
+2
-2
No files found.
libavcodec/mpeg4video.h
View file @
c9cab022
...
...
@@ -174,7 +174,7 @@ static inline int ff_mpeg4_pred_dc(MpegEncContext * s, int n, int level, int *di
}
else
{
level
+=
pred
;
ret
=
level
;
if
(
s
->
err_recognition
&
AV_EF_BITSTREAM
){
if
(
s
->
err_recognition
&
(
AV_EF_BITSTREAM
|
AV_EF_AGGRESSIVE
)
){
if
(
level
<
0
){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"dc<0 at %dx%d
\n
"
,
s
->
mb_x
,
s
->
mb_y
);
return
-
1
;
...
...
libavcodec/mpeg4videodec.c
View file @
c9cab022
...
...
@@ -516,7 +516,7 @@ static inline int mpeg4_decode_dc(MpegEncContext * s, int n, int *dir_ptr)
if
(
code
>
8
){
if
(
get_bits1
(
&
s
->
gb
)
==
0
){
/* marker */
if
(
s
->
err_recognition
&
AV_EF_BITSTREAM
){
if
(
s
->
err_recognition
&
(
AV_EF_BITSTREAM
|
AV_EF_COMPLIANT
)
){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"dc marker bit missing
\n
"
);
return
-
1
;
}
...
...
@@ -1012,7 +1012,7 @@ static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
else
level
=
level
*
qmul
-
qadd
;
if
((
unsigned
)(
level
+
2048
)
>
4095
){
if
(
s
->
err_recognition
&
AV_EF_BITSTREAM
){
if
(
s
->
err_recognition
&
(
AV_EF_BITSTREAM
|
AV_EF_AGGRESSIVE
)
){
if
(
level
>
2560
||
level
<-
2560
){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"|level| overflow in 3. esc, qp=%d
\n
"
,
s
->
qscale
);
return
-
1
;
...
...
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