diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-24 17:53:21 -0400 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-24 20:38:07 -0400 |
commit | 7c8fcbbde3a299096974f9061c8b5be0e526f4c2 (patch) | |
tree | 3321e27447af0c3b29aaba3b98d423d3bb7664bf /libavformat/nut.h | |
parent | 94f333f9dcfb4ed13d08e17949f7a929a1ece4b1 (diff) | |
download | ffmpeg-7c8fcbbde3a299096974f9061c8b5be0e526f4c2.tar.gz |
avutil/tree: add additional const qualifier to the comparator
libc's qsort comparator has a const qualifier on both arguments. This
adds a missing const qualifier to exactly match the comparator API.
Existing usages of av_tree_find, av_tree_insert are appropriately
modified: type signature changes of the comparators, and removal of
unnecessary void * casts of function pointers.
Reviewed-by: Henrik Gramner <henrik@gramner.com>
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavformat/nut.h')
-rw-r--r-- | libavformat/nut.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/nut.h b/libavformat/nut.h index 45aa55cd4d..a4409ee23d 100644 --- a/libavformat/nut.h +++ b/libavformat/nut.h @@ -132,8 +132,8 @@ typedef struct Dispositions { void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val); int64_t ff_lsb2full(StreamContext *stream, int64_t lsb); -int ff_nut_sp_pos_cmp(const Syncpoint *a, const Syncpoint *b); -int ff_nut_sp_pts_cmp(const Syncpoint *a, const Syncpoint *b); +int ff_nut_sp_pos_cmp(const void *a, const void *b); +int ff_nut_sp_pts_cmp(const void *a, const void *b); int ff_nut_add_sp(NUTContext *nut, int64_t pos, int64_t back_ptr, int64_t ts); void ff_nut_free_sp(NUTContext *nut); |