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
e9899ca3
Commit
e9899ca3
authored
Nov 01, 2014
by
Lukasz Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffserver_config: dont pass pointer to enum as pointer to int
Signed-off-by:
Lukasz Marek
<
lukasz.m.luki2@gmail.com
>
parent
5aaf5df0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ffserver_config.c
ffserver_config.c
+5
-2
No files found.
ffserver_config.c
View file @
e9899ca3
...
...
@@ -594,8 +594,11 @@ static int ffserver_apply_stream_config(AVCodecContext *enc, const AVDictionary
ffserver_set_int_param
(
&
enc
->
width
,
e
->
value
,
0
,
INT_MIN
,
INT_MAX
,
NULL
,
0
,
NULL
);
if
((
e
=
av_dict_get
(
conf
,
"VideoSizeHeight"
,
NULL
,
0
)))
ffserver_set_int_param
(
&
enc
->
height
,
e
->
value
,
0
,
INT_MIN
,
INT_MAX
,
NULL
,
0
,
NULL
);
if
((
e
=
av_dict_get
(
conf
,
"PixelFormat"
,
NULL
,
0
)))
ffserver_set_int_param
(
&
enc
->
pix_fmt
,
e
->
value
,
0
,
INT_MIN
,
INT_MAX
,
NULL
,
0
,
NULL
);
if
((
e
=
av_dict_get
(
conf
,
"PixelFormat"
,
NULL
,
0
)))
{
int
val
;
ffserver_set_int_param
(
&
val
,
e
->
value
,
0
,
INT_MIN
,
INT_MAX
,
NULL
,
0
,
NULL
);
enc
->
pix_fmt
=
val
;
}
if
((
e
=
av_dict_get
(
conf
,
"VideoGopSize"
,
NULL
,
0
)))
ffserver_set_int_param
(
&
enc
->
gop_size
,
e
->
value
,
0
,
INT_MIN
,
INT_MAX
,
NULL
,
0
,
NULL
);
if
((
e
=
av_dict_get
(
conf
,
"VideoFrameRateNum"
,
NULL
,
0
)))
...
...
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