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
376ee206
Commit
376ee206
authored
Dec 13, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h263dec: restore error concealment functionality after merge
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
8bc7fe4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
h263dec.c
libavcodec/h263dec.c
+1
-1
ituh263dec.c
libavcodec/ituh263dec.c
+1
-1
No files found.
libavcodec/h263dec.c
View file @
376ee206
...
@@ -310,7 +310,7 @@ static int decode_slice(MpegEncContext *s){
...
@@ -310,7 +310,7 @@ static int decode_slice(MpegEncContext *s){
max_extra
+=
17
;
max_extra
+=
17
;
/* buggy padding but the frame should still end approximately at the bitstream end */
/* buggy padding but the frame should still end approximately at the bitstream end */
if
((
s
->
workaround_bugs
&
FF_BUG_NO_PADDING
)
&&
(
s
->
err_recognition
&
AV_EF_BUFFER
))
if
((
s
->
workaround_bugs
&
FF_BUG_NO_PADDING
)
&&
(
s
->
err_recognition
&
(
AV_EF_BUFFER
|
AV_EF_AGGRESSIVE
)
))
max_extra
+=
48
;
max_extra
+=
48
;
else
if
((
s
->
workaround_bugs
&
FF_BUG_NO_PADDING
))
else
if
((
s
->
workaround_bugs
&
FF_BUG_NO_PADDING
))
max_extra
+=
256
*
256
*
256
*
64
;
max_extra
+=
256
*
256
*
256
*
64
;
...
...
libavcodec/ituh263dec.c
View file @
376ee206
...
@@ -484,7 +484,7 @@ static int h263_decode_block(MpegEncContext * s, DCTELEM * block,
...
@@ -484,7 +484,7 @@ static int h263_decode_block(MpegEncContext * s, DCTELEM * block,
level
=
get_bits
(
&
s
->
gb
,
8
);
level
=
get_bits
(
&
s
->
gb
,
8
);
if
((
level
&
0x7F
)
==
0
){
if
((
level
&
0x7F
)
==
0
){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"illegal dc %d at %d %d
\n
"
,
level
,
s
->
mb_x
,
s
->
mb_y
);
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"illegal dc %d at %d %d
\n
"
,
level
,
s
->
mb_x
,
s
->
mb_y
);
if
(
s
->
err_recognition
&
AV_EF_BITSTREAM
)
if
(
s
->
err_recognition
&
(
AV_EF_BITSTREAM
|
AV_EF_COMPLIANT
)
)
return
-
1
;
return
-
1
;
}
}
if
(
level
==
255
)
if
(
level
==
255
)
...
...
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