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
59352cc2
Commit
59352cc2
authored
May 31, 2012
by
Piotr Bandurski
Committed by
Michael Niedermayer
May 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sgienc: add a limit for maximum supported resolution
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
8a0efa9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
sgienc.c
libavcodec/sgienc.c
+5
-0
No files found.
libavcodec/sgienc.c
View file @
59352cc2
...
...
@@ -36,6 +36,11 @@ static av_cold int encode_init(AVCodecContext *avctx)
{
SgiContext
*
s
=
avctx
->
priv_data
;
if
(
avctx
->
width
>
65535
||
avctx
->
height
>
65535
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"SGI does not support resolutions above 65535x65535
\n
"
);
return
-
1
;
}
avcodec_get_frame_defaults
(
&
s
->
picture
);
avctx
->
coded_frame
=
&
s
->
picture
;
...
...
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