Changeset 49dba5c2d6f3b925de3fb68bb170f630d55e295a

Show
Ignore:
Timestamp:
03/08/08 16:16:07 (6 months ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1204989367 +0100
git-parent:

[ab620e32135cc274bff54297ba2301a3d2ed2c78]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1204987192 +0100
Message:

Fix issues with the VLC rawvid demux and bump it's priority.

Files:

Legend:

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

    r99fab90 r49dba5c  
    6363    set_shortname( "Raw Video" ); 
    6464    set_description( _("Raw video demuxer") ); 
    65     set_capability( "demux2", 3 ); 
     65    set_capability( "demux2", 10 ); 
    6666    set_category( CAT_INPUT ); 
    6767    set_subcategory( SUBCAT_INPUT_DEMUX ); 
     
    185185 
    186186#define READ_FRAC( key, num, den ) \ 
    187         buf = strchr( psz+9, key );\ 
     187        buf = strstr( psz+9, key );\ 
    188188        if( buf )\ 
    189189        {\ 
    190             char *end = strchr( buf, ' ' );\ 
     190            char *end = strchr( buf+1, ' ' );\ 
    191191            char *sep;\ 
    192192            if( end ) *end = '\0';\ 
    193             sep = strchr( buf, ':' );\ 
     193            sep = strchr( buf+1, ':' );\ 
    194194            if( sep )\ 
    195195            {\ 
     
    201201                den = 1;\ 
    202202            }\ 
    203             num = atoi( buf+1 );\ 
     203            num = atoi( buf+2 );\ 
    204204            if( sep ) *sep = ':';\ 
    205205            if( end ) *end = ' ';\ 
    206206        } 
    207         READ_FRAC( 'W', i_width, a ) 
    208         READ_FRAC( 'H', i_height, a ) 
    209         READ_FRAC( 'F', a, b ) 
     207        READ_FRAC( " W", i_width, a ) 
     208        READ_FRAC( " H", i_height, a ) 
     209        READ_FRAC( " F", a, b ) 
    210210        p_sys->f_fps = (double)a/(double)b; 
    211         READ_FRAC( 'A', a, b ) 
     211        READ_FRAC( " A", a, b ) 
    212212        if( b != 0 ) i_aspect = a * VOUT_ASPECT_FACTOR / b; 
    213213 
    214         buf = strchr( psz+9, 'C' ); 
     214        buf = strstr( psz+9, " C" ); 
    215215        if( buf ) 
    216216        { 
    217             char *end = strchr( buf, ' ' ); 
     217            char *end = strchr( buf+1, ' ' ); 
    218218            if( end ) *end = '\0'; 
    219             buf++
    220             if( !strncmp( buf, "C420jpeg", 8 ) ) 
     219            buf+=2
     220            if( !strncmp( buf, "420jpeg", 7 ) ) 
    221221            { 
    222222                psz_chroma = strdup( "I420" ); 
    223223            } 
    224             else if( !strncmp( buf, "C420paldv", 9 ) ) 
     224            else if( !strncmp( buf, "420paldv", 8 ) ) 
    225225            { 
    226226                psz_chroma = strdup( "I420" ); 
    227227            } 
    228             else if( !strncmp( buf, "C420", 4 ) ) 
     228            else if( !strncmp( buf, "420", 3 ) ) 
    229229            { 
    230230                psz_chroma = strdup( "I420" ); 
    231231            } 
    232             else if( !strncmp( buf, "C422", 4 ) ) 
     232            else if( !strncmp( buf, "422", 3 ) ) 
    233233            { 
    234234                psz_chroma = strdup( "I422" ); 
    235235            } 
    236             else if( !strncmp( buf, "C444", 4 ) ) 
     236            else if( !strncmp( buf, "444", 3 ) ) 
    237237            { 
    238238                psz_chroma = strdup( "I444" ); 
     239            } 
     240            else if( !strncmp( buf, "mono", 3 ) ) 
     241            { 
     242                psz_chroma = strdup( "GREY" ); 
    239243            } 
    240244            else