vlc | branch: master | Mirsal Ennaime <[email protected]> | Tue Feb 22 15:11:28 2011 +0100| [020620ba69b19600fe7b06c8fa20cbfe5b50fe49] | committer: Mirsal Ennaime
xiph demux: _correctly_ remove warning Thanks, j-b > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=020620ba69b19600fe7b06c8fa20cbfe5b50fe49 --- modules/demux/xiph.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/modules/demux/xiph.h b/modules/demux/xiph.h index 0ce5dc4..9b7e21c 100644 --- a/modules/demux/xiph.h +++ b/modules/demux/xiph.h @@ -48,8 +48,10 @@ static inline int xiph_SplitHeaders(unsigned packet_size[], void *packet[], unsi } size += packet_size[i]; } - if (end - current < (int)size) + + if ((uint8_t)(end - current) < size) return VLC_EGENERIC; + packet_size[count - 1] = end - current - size; /* Copy the payloads */ _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
