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
cf5629c0
Commit
cf5629c0
authored
Sep 07, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu/opt: reindent after last commit
parent
ca7be934
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
opt.c
libavutil/opt.c
+8
-8
No files found.
libavutil/opt.c
View file @
cf5629c0
...
...
@@ -267,16 +267,16 @@ int av_opt_set(void *obj, const char *name, const char *val, int search_flags)
if
(
!
val
||
!
strcmp
(
val
,
"none"
))
ret
=
PIX_FMT_NONE
;
else
{
ret
=
av_get_pix_fmt
(
val
);
if
(
ret
==
PIX_FMT_NONE
)
{
char
*
tail
;
ret
=
strtol
(
val
,
&
tail
,
0
);
if
(
*
tail
||
(
unsigned
)
ret
>=
PIX_FMT_NB
)
{
av_log
(
obj
,
AV_LOG_ERROR
,
"Unable to parse option value
\"
%s
\"
as pixel format
\n
"
,
val
);
return
AVERROR
(
EINVAL
);
ret
=
av_get_pix_fmt
(
val
);
if
(
ret
==
PIX_FMT_NONE
)
{
char
*
tail
;
ret
=
strtol
(
val
,
&
tail
,
0
);
if
(
*
tail
||
(
unsigned
)
ret
>=
PIX_FMT_NB
)
{
av_log
(
obj
,
AV_LOG_ERROR
,
"Unable to parse option value
\"
%s
\"
as pixel format
\n
"
,
val
);
return
AVERROR
(
EINVAL
);
}
}
}
}
*
(
enum
PixelFormat
*
)
dst
=
ret
;
return
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