diff options
author | Diego Biurrun <diego@biurrun.de> | 2015-10-30 15:27:56 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-11-12 16:47:06 +0100 |
commit | fcbdd605b5409103c3f4bfa063ea270f2229b125 (patch) | |
tree | 111a9cd8e1092c0cadfcbd71fe8cea930e59cf0a /libavformat/nut.c | |
parent | 3b50dbc51fb0978d09c1a5b83d4bf5a59d170e1e (diff) | |
download | ffmpeg-fcbdd605b5409103c3f4bfa063ea270f2229b125.tar.gz |
nut: Use correct function pointer casts instead of void*
Fixes several warnings of the type
libavformat/nut.c:207:42: warning: ISO C forbids conversion of function pointer to object pointer type [-Wpedantic]
Diffstat (limited to 'libavformat/nut.c')
-rw-r--r-- | libavformat/nut.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/nut.c b/libavformat/nut.c index 828d9ca5e0..ec43a3f438 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -204,7 +204,8 @@ int ff_nut_add_sp(NUTContext *nut, int64_t pos, int64_t back_ptr, int64_t ts) sp->pos = pos; sp->back_ptr = back_ptr; sp->ts = ts; - av_tree_insert(&nut->syncpoints, sp, (void *) ff_nut_sp_pos_cmp, &node); + av_tree_insert(&nut->syncpoints, sp, + (int (*)(void *, const void *)) ff_nut_sp_pos_cmp, &node); if (node) { av_free(sp); av_free(node); |