Commit 0180c469 authored by Clément Bœsch's avatar Clément Bœsch

avfilter/showcqt: move qsort_sparsecoeff closer to where it belongs

parent 1786cd85
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment