[vlc-commits] MKV: kill a sign warning
Jean-Baptiste Kempf
git at videolan.org
Mon Apr 9 23:41:37 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 9 23:38:57 2012 +0200| [6c6beb6290b5e73599ac991b5ade04be495ec619] | committer: Jean-Baptiste Kempf
MKV: kill a sign warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6c6beb6290b5e73599ac991b5ade04be495ec619
---
modules/demux/mkv/matroska_segment.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index 637c5f7..6cbdb38 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -979,7 +979,7 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
{
/* Very unlikely yet possible: bug #5659*/
size_t maxlen = p_tk->i_extra_data - sizeof( VLC_BITMAPINFOHEADER );
- p_tk->fmt.i_extra = ( p_tk->fmt.i_extra < maxlen )?
+ p_tk->fmt.i_extra = ( (unsigned)p_tk->fmt.i_extra < maxlen )?
p_tk->fmt.i_extra : maxlen;
p_tk->fmt.p_extra = xmalloc( p_tk->fmt.i_extra );
More information about the vlc-commits
mailing list