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
2d8a3cf4
Commit
2d8a3cf4
authored
Apr 16, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/pixdesc: check for component overlap
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f807d6d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
pixdesc.c
libavutil/pixdesc.c
+8
-0
No files found.
libavutil/pixdesc.c
View file @
2d8a3cf4
...
@@ -1835,6 +1835,10 @@ void ff_check_pixfmt_descriptors(void){
...
@@ -1835,6 +1835,10 @@ void ff_check_pixfmt_descriptors(void){
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
av_pix_fmt_descriptors
);
i
++
)
{
for
(
i
=
0
;
i
<
FF_ARRAY_ELEMS
(
av_pix_fmt_descriptors
);
i
++
)
{
const
AVPixFmtDescriptor
*
d
=
&
av_pix_fmt_descriptors
[
i
];
const
AVPixFmtDescriptor
*
d
=
&
av_pix_fmt_descriptors
[
i
];
uint8_t
fill
[
4
][
8
+
6
+
3
]
=
{{
0
}};
uint8_t
*
data
[
4
]
=
{
fill
[
0
],
fill
[
1
],
fill
[
2
],
fill
[
3
]};
int
linesize
[
4
]
=
{
0
,
0
,
0
,
0
};
uint16_t
tmp
[
2
];
if
(
!
d
->
name
&&
!
d
->
nb_components
&&
!
d
->
log2_chroma_w
&&
!
d
->
log2_chroma_h
&&
!
d
->
flags
)
if
(
!
d
->
name
&&
!
d
->
nb_components
&&
!
d
->
log2_chroma_w
&&
!
d
->
log2_chroma_h
&&
!
d
->
flags
)
continue
;
continue
;
...
@@ -1857,6 +1861,10 @@ void ff_check_pixfmt_descriptors(void){
...
@@ -1857,6 +1861,10 @@ void ff_check_pixfmt_descriptors(void){
}
else
{
}
else
{
av_assert0
(
8
*
(
c
->
step_minus1
+
1
)
>=
c
->
depth_minus1
+
1
);
av_assert0
(
8
*
(
c
->
step_minus1
+
1
)
>=
c
->
depth_minus1
+
1
);
}
}
av_read_image_line
(
tmp
,
(
void
*
)
data
,
linesize
,
d
,
0
,
0
,
j
,
2
,
0
);
av_assert0
(
tmp
[
0
]
==
0
&&
tmp
[
1
]
==
0
);
tmp
[
0
]
=
tmp
[
1
]
=
(
1
<<
(
c
->
depth_minus1
+
1
))
-
1
;
av_write_image_line
(
tmp
,
data
,
linesize
,
d
,
0
,
0
,
j
,
2
);
}
}
}
}
}
}
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