summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-01-03 20:57:30 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-01-03 20:57:30 +0000
commit7349b9bc31f5e800839bfd3dac447e31da4e1403 (patch)
tree2f0613897e90c343d5d74d0fb024371d4c7aa3dc
parent11b26a83b403b3f3661aa59cfc5c3f2c1a7e1705 (diff)
downloadxine-lib-7349b9bc31f5e800839bfd3dac447e31da4e1403.tar.gz
xine-lib-7349b9bc31f5e800839bfd3dac447e31da4e1403.tar.bz2
make buf->size signed. some demuxers do if(size<0) to check the end of file.
this change fix segfaults with incomplete files. CVS patchset: 1327 CVS date: 2002/01/03 20:57:30
-rw-r--r--src/xine-engine/buffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xine-engine/buffer.h b/src/xine-engine/buffer.h
index 0157c6a10..1986a875f 100644
--- a/src/xine-engine/buffer.h
+++ b/src/xine-engine/buffer.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: buffer.h,v 1.27 2001/12/24 00:45:03 guenter Exp $
+ * $Id: buffer.h,v 1.28 2002/01/03 20:57:30 miguelfreitas Exp $
*
*
* contents:
@@ -137,8 +137,8 @@ struct buf_element_s {
unsigned char *mem;
unsigned char *content; /* start of raw content in pMem (without header etc) */
- uint32_t size ; /* size of _content_ */
- uint32_t max_size;
+ int32_t size ; /* size of _content_ */
+ int32_t max_size;
uint32_t type;
uint32_t PTS; /* presentation time stamp, used for a/v sync */
uint32_t SCR; /* system clock reference, used for discont. detection */