On Sun, Oct 25, 2015 at 12:02 AM, Ganesh Ajjanagadde <gajjanaga...@gmail.com> wrote: > -static int cmp(const double *a, const double *b) > +static int cmp(const void *a, const void *b) > { > - return *a < *b ? -1 : ( *a > *b ? 1 : 0 ); > + double va = *(double *)a, vb = *(double *)b; > + return va < vb ? -1 : ( va > vb ? 1 : 0 ); > }
This cast discards the const qualifier and may cause warnings depending on which compiler and compiler flags you use. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel