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/nutenc.c | |
parent | 3b50dbc51fb0978d09c1a5b83d4bf5a59d170e1e (diff) |
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/nutenc.c')
-rw-r--r-- | libavformat/nutenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 3c824a600d..57179bb885 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -807,7 +807,8 @@ static int nut_write_packet(AVFormatContext *s, AVPacket *pkt) } if (dummy.pos == INT64_MAX) dummy.pos = 0; - sp = av_tree_find(nut->syncpoints, &dummy, (void *)ff_nut_sp_pos_cmp, + sp = av_tree_find(nut->syncpoints, &dummy, + (int (*)(void *, const void *)) ff_nut_sp_pos_cmp, NULL); nut->last_syncpoint_pos = avio_tell(bc); |