# HG changeset patch # User vitor # Date 1269470646 0 # Node ID fd67c6b9f91581929840fcd62c6dd875631940e7 # Parent acbe14fa0c74a5e7d32c99bb98d0c836c7b041d7 Fix warnings in NUT demuxer: libavformat/nutdec.c: In function ¡Æread_seek¡Ç: libavformat/nutdec.c:862: warning: passing argument 4 of ¡Æav_tree_find¡Ç from incompatible pointer type ./libavutil/tree.h:44: note: expected ¡Ævoid **¡Ç but argument is of type ¡Æstruct Syncpoint **¡Ç libavformat/nutdec.c:871: warning: passing argument 4 of ¡Æav_tree_find¡Ç from incompatible pointer type ./libavutil/tree.h:44: note: expected ¡Ævoid **¡Ç but argument is of type ¡Æstruct Syncpoint **¡Ç diff -r acbe14fa0c74 -r fd67c6b9f915 nutdec.c --- a/nutdec.c Wed Mar 24 22:38:48 2010 +0000 +++ b/nutdec.c Wed Mar 24 22:44:06 2010 +0000 @@ -859,7 +859,7 @@ pos2= st->index_entries[index].pos; ts = st->index_entries[index].timestamp; }else{ - av_tree_find(nut->syncpoints, &dummy, ff_nut_sp_pts_cmp, next_node); + av_tree_find(nut->syncpoints, &dummy, ff_nut_sp_pts_cmp, (void **) next_node); av_log(s, AV_LOG_DEBUG, "%"PRIu64"-%"PRIu64" %"PRId64"-%"PRId64"\n", next_node[0]->pos, next_node[1]->pos, next_node[0]->ts , next_node[1]->ts); pos= av_gen_search(s, -1, dummy.ts, next_node[0]->pos, next_node[1]->pos, next_node[1]->pos, @@ -868,7 +868,7 @@ if(!(flags & AVSEEK_FLAG_BACKWARD)){ dummy.pos= pos+16; next_node[1]= &nopts_sp; - av_tree_find(nut->syncpoints, &dummy, ff_nut_sp_pos_cmp, next_node); + av_tree_find(nut->syncpoints, &dummy, ff_nut_sp_pos_cmp, (void **) next_node); pos2= av_gen_search(s, -2, dummy.pos, next_node[0]->pos , next_node[1]->pos, next_node[1]->pos, next_node[0]->back_ptr, next_node[1]->back_ptr, flags, &ts, nut_read_timestamp); if(pos2>=0)