Changeset 477 for libmpc/trunk/libmpcdec/mpc_demux.c
- Timestamp:
- 01/01/12 18:05:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/mpc_demux.c
r476 r477 79 79 } 80 80 81 // Returns the amount of unread bytes in the demux buffer.82 static mpc_uint32_t mpc_unread_bytes(mpc_demux * d) {83 mpc_int32_t unread_bytes = mpc_unread_bytes_unchecked(d);84 85 if (unread_bytes < 0) return 0;86 87 return (mpc_uint32_t) unread_bytes;88 }89 90 91 81 92 82 // Returns the number of bytes available in the buffer. … … 97 87 int offset = 0; 98 88 99 if ((mpc_int32_t) 100 unread_bytes < 0)return 0; // Error - we've been reading past the end of the buffer - abort89 if ((mpc_int32_t) unread_bytes < 0) 90 return 0; // Error - we've been reading past the end of the buffer - abort 101 91 102 92 if (min_bytes == 0 || min_bytes > DEMUX_BUFFER_SIZE ||
Note: See TracChangeset
for help on using the changeset viewer.