[FFmpeg-devel] [PATCH] Make bubblesort() a common function

Måns Rullgård mans
Sun Nov 22 22:05:55 CET 2009


Vitor Sessak <vitor1001 at gmail.com> writes:

> $subj, useful for SIPR, maybe also for WMAVoice.
>
> -Vitor
> Index: libavcodec/lsp.c
> ===================================================================
> --- libavcodec/lsp.c	(revision 20569)
> +++ libavcodec/lsp.c	(working copy)
> @@ -173,3 +173,14 @@
>          lpc2[-lp_half_order] = 0.5*(paf-qaf);
>      }
>  }
> +
> +void ff_bubblesort(float *lsp, int lp_order)

Whats wrong with qsort?  It's even standard C.

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list