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
db4b0314
Commit
db4b0314
authored
May 01, 2014
by
Lukasz Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavd/opengl_enc: fix window size correction code
Signed-off-by:
Lukasz Marek
<
lukasz.m.luki2@gmail.com
>
parent
45601854
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
opengl_enc.c
libavdevice/opengl_enc.c
+2
-2
No files found.
libavdevice/opengl_enc.c
View file @
db4b0314
...
...
@@ -872,8 +872,8 @@ static av_cold int opengl_prepare_vertex(AVFormatContext *s)
int
tex_w
,
tex_h
;
if
(
opengl
->
window_width
>
opengl
->
max_viewport_width
||
opengl
->
window_height
>
opengl
->
max_viewport_height
)
{
opengl
->
window_width
=
FFM
AX
(
opengl
->
window_width
,
opengl
->
max_viewport_width
);
opengl
->
window_height
=
FFM
AX
(
opengl
->
window_height
,
opengl
->
max_viewport_height
);
opengl
->
window_width
=
FFM
IN
(
opengl
->
window_width
,
opengl
->
max_viewport_width
);
opengl
->
window_height
=
FFM
IN
(
opengl
->
window_height
,
opengl
->
max_viewport_height
);
av_log
(
opengl
,
AV_LOG_WARNING
,
"Too big viewport requested, limited to %dx%d"
,
opengl
->
window_width
,
opengl
->
window_height
);
}
glViewport
(
0
,
0
,
opengl
->
window_width
,
opengl
->
window_height
);
...
...
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