Changeset 450306de15587bcde1f7ef99d996cc4a0aac6e16
- 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
| r195f756 |
r450306d |
|
| 1122 | 1122 | p_peek += 3; /* ?? */ |
|---|
| 1123 | 1123 | if( i_version == 5 ) p_peek++; |
|---|
| | 1124 | /* Extra Data then: DWord + byte[] */ |
|---|
| | 1125 | fmt.i_extra = GetDWBE( p_peek ); p_peek += 4; |
|---|
| 1124 | 1126 | } |
|---|
| 1125 | 1127 | |
|---|
| … | … | |
| 1141 | 1143 | case VLC_FOURCC( 'r','a','a','c' ): |
|---|
| 1142 | 1144 | 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++ |
|---|
| 1145 | 1145 | if( fmt.i_extra > 0 ) { fmt.i_extra--; p_peek++; } |
|---|
| 1146 | 1146 | if( fmt.i_extra > 0 ) |
|---|
| … | … | |
| 1156 | 1156 | case VLC_FOURCC('a','t','r','c'): |
|---|
| 1157 | 1157 | fmt.audio.i_blockalign = i_subpacket_size; |
|---|
| 1158 | | if( !(fmt.i_extra = GetDWBE( p_peek )) ) break; |
|---|
| | 1158 | if( !fmt.i_extra ) break; |
|---|
| 1159 | 1159 | 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 ); |
|---|
| 1161 | 1161 | break; |
|---|
| 1162 | 1162 | |
|---|