aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-03-07 11:54:37 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-03-07 11:54:37 +0100
commitb872b98bb4666ee4f23b3e9a47d0f6085c0c1b3a (patch)
tree2fc119ef366e224e5678c12e8be46a2088567162 /libavfilter
parent4737fe6907d2693d044d29ca06510cc6fcbec544 (diff)
downloadffmpeg-b872b98bb4666ee4f23b3e9a47d0f6085c0c1b3a.tar.gz
lavfi/extractplanes: Move endianness calculation up.
Needed for next commit.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_extractplanes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_extractplanes.c b/libavfilter/vf_extractplanes.c
index 099c00f290..dc37ca8ff7 100644
--- a/libavfilter/vf_extractplanes.c
+++ b/libavfilter/vf_extractplanes.c
@@ -106,14 +106,14 @@ static int query_formats(AVFilterContext *ctx)
return AVERROR(EAGAIN);
}
- if (!ctx->inputs[0]->out_formats)
- if ((ret = ff_formats_ref(ff_make_format_list(in_pixfmts), &ctx->inputs[0]->out_formats)) < 0)
- return ret;
-
avff = ctx->inputs[0]->in_formats;
desc = av_pix_fmt_desc_get(avff->formats[0]);
depth = desc->comp[0].depth;
be = desc->flags & AV_PIX_FMT_FLAG_BE;
+ if (!ctx->inputs[0]->out_formats)
+ if ((ret = ff_formats_ref(ff_make_format_list(in_pixfmts), &ctx->inputs[0]->out_formats)) < 0)
+ return ret;
+
for (i = 1; i < avff->nb_formats; i++) {
desc = av_pix_fmt_desc_get(avff->formats[i]);
if (depth != desc->comp[0].depth ||