Changeset f1588c975cbc2e28980d4863b4430f92f7a74b98

Show
Ignore:
Timestamp:
04/30/06 19:36:48 (2 years ago)
Author:
Clément Stenac <zorglub@videolan.org>
git-committer:
Clément Stenac <zorglub@videolan.org> 1146418608 +0000
git-parent:

[8865c5c72cb845c9c30bb0c7261264fa79c4c29f]

git-author:
Clément Stenac <zorglub@videolan.org> 1146418608 +0000
Message:

Fortune

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • doc/fortunes.txt

    r2ab8b2a rf1588c9  
    642642 -- http://forum.videolan.org/ 
    643643% 
     644* E-bola is bouncing up and down while enjoying: HTTP/1.1 200 OK 
     645* E-bola is bouncing up and down while enjoying: Content-type: text/html; charset=UTF-8 
     646* E-bola is bouncing up and down while enjoying: Cache-Control: no-cache 
     647* E-bola is bouncing up and down while enjoying: Content-Length: 25 
     648* E-bola is bouncing up and down while enjoying: -- 
     649% 
  • modules/demux/asf/asf.c

    r0ade81b rf1588c9  
    665665            es_format_Init( &fmt, AUDIO_ES, 0 ); 
    666666            i_format = GetWLE( &p_data[0] ); 
     667 
     668            fprintf( stderr, "Wave format %i\n", i_format ); 
    667669            wf_tag_to_fourcc( i_format, &fmt.i_codec, NULL ); 
    668670            fmt.audio.i_channels        = GetWLE(  &p_data[2] ); 
  • modules/mux/asf.c

    r386b36f rf1588c9  
     1static int i_global = 0, i_passed = 0, i_written = 0; 
    12/***************************************************************************** 
    23 * asf.c: asf muxer module for vlc 
     
    584585{ 
    585586    sout_mux_sys_t *p_sys = p_mux->p_sys; 
     587    i_global++; 
     588    fprintf( stderr, "Called %i\n", i_global ); 
    586589 
    587590    if( p_sys->b_write_header ) 
     
    609612            return VLC_SUCCESS; 
    610613        } 
     614        i_passed++; 
     615        fprintf( stderr, "Passed %i\n", i_passed ); 
    611616 
    612617        if( p_sys->i_dts_first < 0 ) 
     
    626631        if( ( pk = asf_packet_create( p_mux, tk, data ) ) ) 
    627632        { 
     633            i_written ++; 
     634            fprintf( stderr, "Written %i\n", i_written ); 
    628635            sout_AccessOutWrite( p_mux->p_access, pk ); 
    629636        } 
  • modules/mux/avi.c

    radc858d rf1588c9  
     1static int i_global = 0; 
    12/***************************************************************************** 
    23 * avi.c 
     
    111112 
    112113// FIXME FIXME 
    113 #define HDR_SIZE 10240 
     114#define HDR_SIZE 4096 
    114115 
    115116/* Flags in avih */ 
     
    405406    int i_stream; 
    406407    int i; 
     408i_global++; 
    407409 
    408410    if( p_sys->b_write_header ) 
     
    475477                    p_data = block_Realloc( p_data, 0, p_data->i_buffer + 1 ); 
    476478                } 
    477  
    478479                p_sys->i_movi_size += p_data->i_buffer; 
    479480                sout_AccessOutWrite( p_mux->p_access, p_data ); 
     
    764765            bo_AddDWordLE( p_bo, p_stream->p_bih->biClrUsed ); 
    765766            bo_AddDWordLE( p_bo, p_stream->p_bih->biClrImportant ); 
    766             bo_AddMem( p_bo, 
    767                        p_stream->p_bih->biSize - sizeof( BITMAPINFOHEADER ), 
    768                        (uint8_t*)&p_stream->p_bih[1] ); 
     767//            bo_AddMem( p_bo, 
     768//                       p_stream->p_bih->biSize - sizeof( BITMAPINFOHEADER ), 
     769//                       (uint8_t*)&p_stream->p_bih[1] ); 
    769770            break; 
    770771    } 
     
    792793    int                 i_maxbytespersec; 
    793794    int                 i_junk; 
    794     buffer_out_t        bo; 
    795  
    796     p_hdr = block_New( p_mux, HDR_SIZE ); 
    797     memset( p_hdr->p_buffer, 0, HDR_SIZE ); 
    798  
    799     bo_Init( &bo, HDR_SIZE, p_hdr->p_buffer ); 
     795    buffer_out_t        bo, bo_save; 
     796 
     797    /* Real header + LIST-movi */ 
     798    p_hdr = block_New( p_mux, HDR_SIZE + 12 ); 
     799    memset( p_hdr->p_buffer, 0, HDR_SIZE  + 12 ); 
     800 
     801    bo_Init( &bo, HDR_SIZE + 12, p_hdr->p_buffer ); 
    800802 
    801803    bo_AddFCC( &bo, "RIFF" ); 
    802     bo_AddDWordLE( &bo, p_sys->i_movi_size + HDR_SIZE - 8 + p_sys->i_idx1_size ); 
     804    bo_AddDWordLE( &bo, p_sys->i_movi_size + HDR_SIZE + p_sys->i_idx1_size ); 
    803805    bo_AddFCC( &bo, "AVI " ); 
    804806 
    805807    bo_AddFCC( &bo, "LIST" ); 
    806     bo_AddDWordLE( &bo, HDR_SIZE - 8); 
     808    memcpy( &bo_save, &bo, sizeof( buffer_out_t ) ); 
     809    bo_AddDWordLE( &bo, 0 ); 
    807810    bo_AddFCC( &bo, "hdrl" ); 
    808811 
    809812    avi_HeaderAdd_avih( p_mux, &bo ); 
    810     for( i_stream = 0,i_maxbytespersec = 0; i_stream < p_sys->i_streams; i_stream++ ) 
     813    for( i_stream = 0, i_maxbytespersec = 0; i_stream < p_sys->i_streams; 
     814         i_stream++ ) 
    811815    { 
    812816        avi_HeaderAdd_strl( p_mux, &bo, &p_sys->stream[i_stream] ); 
    813817    } 
    814818 
    815     i_junk = HDR_SIZE - bo.i_buffer - 8 - 12; 
     819    bo_AddDWordLE( &bo_save, bo.i_buffer - bo_save.i_buffer - 4 ); 
     820 
     821    i_junk = HDR_SIZE - bo.i_buffer - 8; 
    816822    bo_AddFCC( &bo, "JUNK" ); 
    817823    bo_AddDWordLE( &bo, i_junk ); 
    818824 
    819825    bo.i_buffer += i_junk; 
     826    fprintf( stderr, "Writing list-movi at %i\n", bo.i_buffer ); 
    820827    bo_AddFCC( &bo, "LIST" ); 
    821828    bo_AddDWordLE( &bo, p_sys->i_movi_size + 4 );