mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavu/opt: reindent after last commit
This commit is contained in:
parent
ca7be934d6
commit
cf5629c064
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user