diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-14 20:21:18 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-21 01:28:51 +0300 |
commit | b2266961c04eb4cfc3c842e092d3f7198a586719 (patch) | |
tree | 68b7e062076b199b2e58dceb4af0a299e5dde547 /libavfilter | |
parent | 06754f7bbf341062581accc27b5cce353e99fd82 (diff) |
avfilter/formats: Cosmetics
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/formats.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c index 78f698745c..8918118b8e 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -62,9 +62,9 @@ do { \ * merged; otherwise, it is treated as error. */ #define MERGE_FORMATS(a, b, fmts, nb, type, check, empty_allowed) \ -do { \ +do { \ int i, j, k = 0, skip = 0; \ - \ + \ if (empty_allowed) { \ if (!a->nb || !b->nb) { \ if (check) \ @@ -75,20 +75,20 @@ do { } \ } \ if (!skip) { \ - for (i = 0; i < a->nb; i++) \ - for (j = 0; j < b->nb; j++) \ - if (a->fmts[i] == b->fmts[j]) { \ + for (i = 0; i < a->nb; i++) \ + for (j = 0; j < b->nb; j++) \ + if (a->fmts[i] == b->fmts[j]) { \ if (check) \ return 1; \ a->fmts[k++] = a->fmts[i]; \ - break; \ - } \ - /* Check that there was at least one common format. \ - * Notice that both a and b are unchanged if not. */ \ - if (!k) \ - return 0; \ - av_assert2(!check); \ - a->nb = k; \ + break; \ + } \ + /* Check that there was at least one common format. \ + * Notice that both a and b are unchanged if not. */ \ + if (!k) \ + return 0; \ + av_assert2(!check); \ + a->nb = k; \ } \ \ MERGE_REF(a, b, fmts, type, return AVERROR(ENOMEM);); \ |