aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-11-02 15:55:42 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-11-03 12:14:53 +0100
commitca11f6b240a1cb5e29267461ffa1037071c7bdb6 (patch)
treefd7a867d22845373fa4f160778611ef45db8a355
parent481fdeeecfc2beafd7b87d6875839d428bd4e6b8 (diff)
downloadffmpeg-ca11f6b240a1cb5e29267461ffa1037071c7bdb6.tar.gz
lavu/opt: prefer if(){}else{} over if()else{} construct
Improve consistency.
-rw-r--r--libavutil/opt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index d65f7f38a6..140784e20f 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -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);
return ret;
case AV_OPT_TYPE_PIXEL_FMT:
- if (!val || !strcmp(val, "none"))
+ if (!val || !strcmp(val, "none")) {
ret = AV_PIX_FMT_NONE;
- else {
+ } else {
ret = av_get_pix_fmt(val);
if (ret == AV_PIX_FMT_NONE) {
char *tail;