Commit ca11f6b2 authored by Stefano Sabatini's avatar Stefano Sabatini

lavu/opt: prefer if(){}else{} over if()else{} construct

Improve consistency.
parent 481fdeee
...@@ -265,9 +265,9 @@ int av_opt_set(void *obj, const char *name, const char *val, int search_flags) ...@@ -265,9 +265,9 @@ int av_opt_set(void *obj, const char *name, const char *val, int search_flags)
av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as image size\n", val); av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as image size\n", val);
return ret; return ret;
case AV_OPT_TYPE_PIXEL_FMT: case AV_OPT_TYPE_PIXEL_FMT:
if (!val || !strcmp(val, "none")) if (!val || !strcmp(val, "none")) {
ret = AV_PIX_FMT_NONE; ret = AV_PIX_FMT_NONE;
else { } else {
ret = av_get_pix_fmt(val); ret = av_get_pix_fmt(val);
if (ret == AV_PIX_FMT_NONE) { if (ret == AV_PIX_FMT_NONE) {
char *tail; char *tail;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment