[FFmpeg-cvslog] avfilter/showcqt: move qsort_sparsecoeff closer to where it belongs

Clément Bœsch git at videolan.org
Wed Jun 11 21:35:43 CEST 2014


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Wed Jun 11 21:32:22 2014 +0200| [0180c4692864ca396f0cc13b33f2e219bf48be78] | committer: Clément Bœsch

avfilter/showcqt: move qsort_sparsecoeff closer to where it belongs

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0180c4692864ca396f0cc13b33f2e219bf48be78
---

 libavfilter/avf_showcqt.c |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c
index 0a7b2b5..8b4309c 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;



More information about the ffmpeg-cvslog mailing list