X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fkino%2Friff.cc;h=44a082ca1e655af9bc21000554834f5106b2109e;hb=f4963a6aa07644399b273b5d2b1f9299c9047414;hp=51ed2101dd8796a051d38d130460939032df6ff1;hpb=489ad0dc6f6157c1de80b43ff6babb1296983db8;p=melted diff --git a/src/modules/kino/riff.cc b/src/modules/kino/riff.cc index 51ed210..44a082c 100644 --- a/src/modules/kino/riff.cc +++ b/src/modules/kino/riff.cc @@ -82,7 +82,9 @@ //#include #include #include +#ifndef __FreeBSD__ #include +#endif /* __FreeBSD__ */ using std::cout; using std::hex; @@ -113,7 +115,7 @@ using std::endl; could not get it working on the gcc compiler so I had to use this workaround. We can now use id = make_fourcc("ABCD") instead. */ -FOURCC make_fourcc( char *s ) +FOURCC make_fourcc( const char *s ) { if ( s[ 0 ] == 0 ) return 0; @@ -513,10 +515,10 @@ void RIFFFile::ParseChunk( int parent ) /* Check whether it is a LIST. If so, let ParseList deal with it */ - read( fd, &type, sizeof( type ) ); + fail_if( read( fd, &type, sizeof( type ) ) != sizeof( type )); if ( type == make_fourcc( "LIST" ) ) { - typesize = -sizeof( type ); + typesize = (int) -sizeof( type ); fail_if( lseek( fd, typesize, SEEK_CUR ) == ( off_t ) - 1 ); ParseList( parent ); }