- bits_initwrite( &bits, 512, data );
- bits_write( &bits, 8, fcc[0]);
- bits_write( &bits, 8, fcc[1]);
- bits_write( &bits, 8, fcc[2]);
- bits_write( &bits, 8, fcc[3]);
- bits_write( &bits, 16, p_stream->i_bih_width );
- bits_write( &bits, 16, p_stream->i_bih_height );
- bits_write( &bits, 16, p_stream->i_decoder_specific_info );
- if( p_stream->i_decoder_specific_info > 0 )
+ memcpy( &data[0], &p_stream->i_bih_codec, 4 );
+ data[4] = ( p_stream->i_bih_width >> 8 )&&0xff;
+ data[5] = ( p_stream->i_bih_width )&&0xff;
+ data[6] = ( p_stream->i_bih_height>> 8 )&&0xff;
+ data[7] = ( p_stream->i_bih_height )&&0xff;
+ data[8] = ( i_extra >> 8 )&&0xff;
+ data[9] = ( i_extra )&&0xff;
+ if( i_extra > 0 )