Changeset 450306de15587bcde1f7ef99d996cc4a0aac6e16

Show
Ignore:
Timestamp:
17/11/07 09:47:24 (1 year ago)
Author:
Jean-Baptiste Kempf <jb@videolan.org>
git-committer:
Jean-Baptiste Kempf <jb@videolan.org> 1195289244 +0000
git-parent:

[195f75696698ee5aefd877dbc9a9cbd8dee0ee3c]

git-author:
Jean-Baptiste Kempf <jb@videolan.org> 1195289244 +0000
Message:

Extra Data code factorisation: This shouldn't destroy old support, but please repport any broken stream.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/real.c

    r195f756 r450306d  
    11221122            p_peek += 3;                                               /* ?? */ 
    11231123            if( i_version == 5 ) p_peek++; 
     1124            /* Extra Data then: DWord + byte[] */ 
     1125            fmt.i_extra = GetDWBE( p_peek ); p_peek += 4; 
    11241126        } 
    11251127 
     
    11411143        case VLC_FOURCC( 'r','a','a','c' ): 
    11421144        case VLC_FOURCC( 'r','a','c','p' ): 
    1143             fmt.i_extra = GetDWBE( p_peek ); p_peek += 4; 
    1144             // For version == 4, there might need an extra p_peek++ 
    11451145            if( fmt.i_extra > 0 ) { fmt.i_extra--; p_peek++; } 
    11461146            if( fmt.i_extra > 0 ) 
     
    11561156        case VLC_FOURCC('a','t','r','c'): 
    11571157            fmt.audio.i_blockalign = i_subpacket_size; 
    1158             if( !(fmt.i_extra = GetDWBE( p_peek )) ) break; 
     1158            if( !fmt.i_extra ) break; 
    11591159            fmt.p_extra = malloc( fmt.i_extra ); 
    1160             memcpy( fmt.p_extra, p_peek + 4, fmt.i_extra ); 
     1160            memcpy( fmt.p_extra, p_peek, fmt.i_extra ); 
    11611161            break; 
    11621162