diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-09-07 09:39:58 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-09-07 09:59:12 +0200 |
commit | cf5629c06424b37cceb4e440a2497ca1d9add284 (patch) | |
tree | 4250c00ef03a87cb1b5133a8274016f5cf5c6b77 /libavutil/opt.c | |
parent | ca7be934d6f69487da7cd3f62404cf5963e12e22 (diff) | |
download | ffmpeg-cf5629c06424b37cceb4e440a2497ca1d9add284.tar.gz |
lavu/opt: reindent after last commit
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r-- | libavutil/opt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index 5f8aaad6a1..0957281076 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -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; } |