Ignore:
Timestamp:
10/07/06 02:49:28 (16 years ago)
Author:
r2d
Message:
  • fixed a LOT of bugs
  • fixed a bug that took me 2 days to find :)
  • remember to ALWAYS use -Wall with a C compiler (C++ is great !!!)
  • files can be played, but are not bit identical with the 1.15w encoder (the last digits of floats are not the same) - must be fixed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • mppenc/branches/r2d/libmpcenc/bitstream.c

    r65 r71  
    1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1818 */
     19
     20#include <unistd.h>
    1921
    2022#include "libmpcenc.h"
     
    6264    mpc_size_t           WrittenDwords = 0;
    6365    const mpc_uint32_t*  p             = buffer;
     66#if ENDIAN == HAVE_BIG_ENDIAN
    6467    mpc_size_t           CC            = words32bit;
     68#endif
    6569
    6670#if ENDIAN == HAVE_BIG_ENDIAN
     
    7276        WrittenDwords = fwrite ( p, sizeof(*buffer), words32bit, fp );
    7377        if ( WrittenDwords == 0 ) {
    74             stderr_printf ( "\b\n WARNING: Disk full?, retry after 10 sec ...\a" );
     78                        // FIXME : move stderr_printf to common
     79//             stderr_printf ( "\b\n WARNING: Disk full?, retry after 10 sec ...\a" );
     80                        sprintf(stderr, "\b\n WARNING: Disk full?, retry after 10 sec ...\a");
    7581            sleep (10);
    7682        }
Note: See TracChangeset for help on using the changeset viewer.