Changeset 49dba5c2d6f3b925de3fb68bb170f630d55e295a
- 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
| r99fab90 |
r49dba5c |
|
| 63 | 63 | set_shortname( "Raw Video" ); |
|---|
| 64 | 64 | set_description( _("Raw video demuxer") ); |
|---|
| 65 | | set_capability( "demux2", 3 ); |
|---|
| | 65 | set_capability( "demux2", 10 ); |
|---|
| 66 | 66 | set_category( CAT_INPUT ); |
|---|
| 67 | 67 | set_subcategory( SUBCAT_INPUT_DEMUX ); |
|---|
| … | … | |
| 185 | 185 | |
|---|
| 186 | 186 | #define READ_FRAC( key, num, den ) \ |
|---|
| 187 | | buf = strchr( psz+9, key );\ |
|---|
| | 187 | buf = strstr( psz+9, key );\ |
|---|
| 188 | 188 | if( buf )\ |
|---|
| 189 | 189 | {\ |
|---|
| 190 | | char *end = strchr( buf, ' ' );\ |
|---|
| | 190 | char *end = strchr( buf+1, ' ' );\ |
|---|
| 191 | 191 | char *sep;\ |
|---|
| 192 | 192 | if( end ) *end = '\0';\ |
|---|
| 193 | | sep = strchr( buf, ':' );\ |
|---|
| | 193 | sep = strchr( buf+1, ':' );\ |
|---|
| 194 | 194 | if( sep )\ |
|---|
| 195 | 195 | {\ |
|---|
| … | … | |
| 201 | 201 | den = 1;\ |
|---|
| 202 | 202 | }\ |
|---|
| 203 | | num = atoi( buf+1 );\ |
|---|
| | 203 | num = atoi( buf+2 );\ |
|---|
| 204 | 204 | if( sep ) *sep = ':';\ |
|---|
| 205 | 205 | if( end ) *end = ' ';\ |
|---|
| 206 | 206 | } |
|---|
| 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 ) |
|---|
| 210 | 210 | p_sys->f_fps = (double)a/(double)b; |
|---|
| 211 | | READ_FRAC( 'A', a, b ) |
|---|
| | 211 | READ_FRAC( " A", a, b ) |
|---|
| 212 | 212 | if( b != 0 ) i_aspect = a * VOUT_ASPECT_FACTOR / b; |
|---|
| 213 | 213 | |
|---|
| 214 | | buf = strchr( psz+9, 'C' ); |
|---|
| | 214 | buf = strstr( psz+9, " C" ); |
|---|
| 215 | 215 | if( buf ) |
|---|
| 216 | 216 | { |
|---|
| 217 | | char *end = strchr( buf, ' ' ); |
|---|
| | 217 | char *end = strchr( buf+1, ' ' ); |
|---|
| 218 | 218 | if( end ) *end = '\0'; |
|---|
| 219 | | buf++; |
|---|
| 220 | | if( !strncmp( buf, "C420jpeg", 8 ) ) |
|---|
| | 219 | buf+=2; |
|---|
| | 220 | if( !strncmp( buf, "420jpeg", 7 ) ) |
|---|
| 221 | 221 | { |
|---|
| 222 | 222 | psz_chroma = strdup( "I420" ); |
|---|
| 223 | 223 | } |
|---|
| 224 | | else if( !strncmp( buf, "C420paldv", 9 ) ) |
|---|
| | 224 | else if( !strncmp( buf, "420paldv", 8 ) ) |
|---|
| 225 | 225 | { |
|---|
| 226 | 226 | psz_chroma = strdup( "I420" ); |
|---|
| 227 | 227 | } |
|---|
| 228 | | else if( !strncmp( buf, "C420", 4 ) ) |
|---|
| | 228 | else if( !strncmp( buf, "420", 3 ) ) |
|---|
| 229 | 229 | { |
|---|
| 230 | 230 | psz_chroma = strdup( "I420" ); |
|---|
| 231 | 231 | } |
|---|
| 232 | | else if( !strncmp( buf, "C422", 4 ) ) |
|---|
| | 232 | else if( !strncmp( buf, "422", 3 ) ) |
|---|
| 233 | 233 | { |
|---|
| 234 | 234 | psz_chroma = strdup( "I422" ); |
|---|
| 235 | 235 | } |
|---|
| 236 | | else if( !strncmp( buf, "C444", 4 ) ) |
|---|
| | 236 | else if( !strncmp( buf, "444", 3 ) ) |
|---|
| 237 | 237 | { |
|---|
| 238 | 238 | psz_chroma = strdup( "I444" ); |
|---|
| | 239 | } |
|---|
| | 240 | else if( !strncmp( buf, "mono", 3 ) ) |
|---|
| | 241 | { |
|---|
| | 242 | psz_chroma = strdup( "GREY" ); |
|---|
| 239 | 243 | } |
|---|
| 240 | 244 | else |
|---|