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
644130bc
Commit
644130bc
authored
May 08, 2018
by
Martin Vignali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avdevice/sdl2output : fix setting window_size
parent
16b4f97b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
sdl2.c
libavdevice/sdl2.c
+2
-4
No files found.
libavdevice/sdl2.c
View file @
644130bc
...
...
@@ -206,9 +206,7 @@ static int sdl2_write_header(AVFormatContext *s)
}
}
sdl
->
window_width
=
sdl
->
texture_rect
.
w
=
codecpar
->
width
;
sdl
->
window_height
=
sdl
->
texture_rect
.
h
=
codecpar
->
height
;
sdl
->
texture_rect
.
x
=
sdl
->
texture_rect
.
y
=
0
;
compute_texture_rect
(
s
);
if
(
SDL_CreateWindowAndRenderer
(
sdl
->
window_width
,
sdl
->
window_height
,
flags
,
&
sdl
->
window
,
&
sdl
->
renderer
)
!=
0
){
...
...
@@ -219,7 +217,7 @@ static int sdl2_write_header(AVFormatContext *s)
SDL_SetWindowTitle
(
sdl
->
window
,
sdl
->
window_title
);
sdl
->
texture
=
SDL_CreateTexture
(
sdl
->
renderer
,
sdl
->
texture_fmt
,
SDL_TEXTUREACCESS_STREAMING
,
sdl
->
window_width
,
sdl
->
window_
height
);
codecpar
->
width
,
codecpar
->
height
);
if
(
!
sdl
->
texture
)
{
av_log
(
sdl
,
AV_LOG_ERROR
,
"Unable to set create mode: %s
\n
"
,
SDL_GetError
());
...
...
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