summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showcqt.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2014-06-11 21:32:22 +0200
committerClément Bœsch <u@pkh.me>2014-06-11 21:33:09 +0200
commit0180c4692864ca396f0cc13b33f2e219bf48be78 (patch)
tree3e8ec83a66d3eb9e0306e76e17997fb1a1859630 /libavfilter/avf_showcqt.c
parent1786cd850f902d732317ce2ee77ef68322580270 (diff)
avfilter/showcqt: move qsort_sparsecoeff closer to where it belongs
Diffstat (limited to 'libavfilter/avf_showcqt.c')
-rw-r--r--libavfilter/avf_showcqt.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c
index 0a7b2b59d5..8b4309c709 100644
--- a/libavfilter/avf_showcqt.c
+++ b/libavfilter/avf_showcqt.c
@@ -49,14 +49,6 @@ typedef struct {
int index;
} SparseCoeff;
-static inline int qsort_sparsecoeff(const SparseCoeff *a, const SparseCoeff *b)
-{
- if (fabsf(a->value) >= fabsf(b->value))
- return 1;
- else
- return -1;
-}
-
typedef struct {
const AVClass *class;
AVFrame *outpicref;
@@ -150,6 +142,14 @@ static int query_formats(AVFilterContext *ctx)
return 0;
}
+static inline int qsort_sparsecoeff(const SparseCoeff *a, const SparseCoeff *b)
+{
+ if (fabsf(a->value) >= fabsf(b->value))
+ return 1;
+ else
+ return -1;
+}
+
static int config_output(AVFilterLink *outlink)
{
AVFilterContext *ctx = outlink->src;