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
b81f2b3d
Commit
b81f2b3d
authored
Dec 03, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 11141 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
24cdc39e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
opt.c
libavcodec/opt.c
+1
-3
No files found.
libavcodec/opt.c
View file @
b81f2b3d
...
...
@@ -191,9 +191,6 @@ const char *av_get_string(void *obj, const char *name, const AVOption **o_out, c
dst
=
((
uint8_t
*
)
obj
)
+
o
->
offset
;
if
(
o_out
)
*
o_out
=
o
;
if
(
o
->
type
==
FF_OPT_TYPE_STRING
)
return
*
(
void
**
)
dst
;
switch
(
o
->
type
){
case
FF_OPT_TYPE_FLAGS
:
snprintf
(
buf
,
buf_len
,
"0x%08X"
,
*
(
int
*
)
dst
);
break
;
case
FF_OPT_TYPE_INT
:
snprintf
(
buf
,
buf_len
,
"%d"
,
*
(
int
*
)
dst
);
break
;
...
...
@@ -201,6 +198,7 @@ const char *av_get_string(void *obj, const char *name, const AVOption **o_out, c
case
FF_OPT_TYPE_FLOAT
:
snprintf
(
buf
,
buf_len
,
"%f"
,
*
(
float
*
)
dst
);
break
;
case
FF_OPT_TYPE_DOUBLE
:
snprintf
(
buf
,
buf_len
,
"%f"
,
*
(
double
*
)
dst
);
break
;
case
FF_OPT_TYPE_RATIONAL
:
snprintf
(
buf
,
buf_len
,
"%d/%d"
,
((
AVRational
*
)
dst
)
->
num
,
((
AVRational
*
)
dst
)
->
den
);
break
;
case
FF_OPT_TYPE_STRING
:
return
*
(
void
**
)
dst
;
default
:
return
NULL
;
}
return
buf
;
...
...
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