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
c0f0bec2
Commit
c0f0bec2
authored
Oct 13, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sws-test: check W/H
Fixes CID733834 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2c85727f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
swscale-test.c
libswscale/swscale-test.c
+2
-1
No files found.
libswscale/swscale-test.c
View file @
c0f0bec2
...
...
@@ -316,7 +316,8 @@ static int fileTest(uint8_t *ref[4], int refStride[4], int w, int h, FILE *fp,
srcFormat
=
av_get_pix_fmt
(
srcStr
);
dstFormat
=
av_get_pix_fmt
(
dstStr
);
if
(
srcFormat
==
AV_PIX_FMT_NONE
||
dstFormat
==
AV_PIX_FMT_NONE
)
{
if
(
srcFormat
==
AV_PIX_FMT_NONE
||
dstFormat
==
AV_PIX_FMT_NONE
||
srcW
>
1024U
||
srcH
>
1024U
||
dstW
>
1024U
||
dstH
>
1024U
)
{
fprintf
(
stderr
,
"malformed input file
\n
"
);
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