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
ac9389a6
Commit
ac9389a6
authored
Jul 16, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffv1dec: detect errors in bytestream end mismatches for EC
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b0d674ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
ffv1.c
libavcodec/ffv1.c
+7
-0
No files found.
libavcodec/ffv1.c
View file @
ac9389a6
...
@@ -1648,6 +1648,13 @@ static int decode_slice(AVCodecContext *c, void *arg){
...
@@ -1648,6 +1648,13 @@ static int decode_slice(AVCodecContext *c, void *arg){
}
else
{
}
else
{
decode_rgb_frame
(
fs
,
(
uint32_t
*
)
p
->
data
[
0
]
+
ps
*
x
+
y
*
(
p
->
linesize
[
0
]
/
4
),
width
,
height
,
p
->
linesize
[
0
]
/
4
);
decode_rgb_frame
(
fs
,
(
uint32_t
*
)
p
->
data
[
0
]
+
ps
*
x
+
y
*
(
p
->
linesize
[
0
]
/
4
),
width
,
height
,
p
->
linesize
[
0
]
/
4
);
}
}
if
(
fs
->
ac
&&
f
->
version
>
2
)
{
int
v
=
fs
->
c
.
bytestream_end
-
fs
->
c
.
bytestream
-
3
-
5
*
f
->
ec
;
if
(
v
!=
-
1
&&
v
!=
0
)
{
av_log
(
f
->
avctx
,
AV_LOG_ERROR
,
"bytestream end mismatching by %d
\n
"
,
v
);
fs
->
slice_damaged
=
1
;
}
}
emms_c
();
emms_c
();
...
...
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