Changeset 3b29796137d524c8efa30e8f0753b2934c38bd26
- Timestamp:
- 02/18/08 18:14:27
(7 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1203354867 +0000
- git-parent:
[b2bc5fb8a2fcabf00b6fa75452bc2cfc694c3f3a]
- git-author:
- Rafaël Carré <funman@videolan.org> 1203354867 +0000
- Message:
compare the right amount of data, being a little bit more strict
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r99fab90 |
r3b29796 |
|
| 284 | 284 | if( p_stream->fmt.i_codec == VLC_FOURCC('t','h','e','o') && |
|---|
| 285 | 285 | oggpacket.bytes >= 7 && |
|---|
| 286 | | ! memcmp( oggpacket.packet, "\x80theora", 6 ) ) |
|---|
| | 286 | ! memcmp( oggpacket.packet, "\x80theora", 7 ) ) |
|---|
| 287 | 287 | { |
|---|
| 288 | 288 | Ogg_ReadTheoraHeader( p_stream, &oggpacket ); |
|---|
| … | … | |
| 291 | 291 | else if( p_stream->fmt.i_codec == VLC_FOURCC('v','o','r','b') && |
|---|
| 292 | 292 | oggpacket.bytes >= 7 && |
|---|
| 293 | | ! memcmp( oggpacket.packet, "\x01vorbis", 6 ) ) |
|---|
| | 293 | ! memcmp( oggpacket.packet, "\x01vorbis", 7 ) ) |
|---|
| 294 | 294 | { |
|---|
| 295 | 295 | Ogg_ReadVorbisHeader( p_stream, &oggpacket ); |
|---|
| … | … | |
| 783 | 783 | /* Check for Vorbis header */ |
|---|
| 784 | 784 | if( oggpacket.bytes >= 7 && |
|---|
| 785 | | ! memcmp( oggpacket.packet, "\x01vorbis", 6 ) ) |
|---|
| | 785 | ! memcmp( oggpacket.packet, "\x01vorbis", 7 ) ) |
|---|
| 786 | 786 | { |
|---|
| 787 | 787 | Ogg_ReadVorbisHeader( p_stream, &oggpacket ); |
|---|
| … | … | |
| 789 | 789 | } |
|---|
| 790 | 790 | /* Check for Speex header */ |
|---|
| 791 | | else if( oggpacket.bytes >= 7 && |
|---|
| | 791 | else if( oggpacket.bytes >= 5 && |
|---|
| 792 | 792 | ! memcmp( oggpacket.packet, "Speex", 5 ) ) |
|---|
| 793 | 793 | { |
|---|
| … | … | |
| 833 | 833 | /* Check for Theora header */ |
|---|
| 834 | 834 | else if( oggpacket.bytes >= 7 && |
|---|
| 835 | | ! memcmp( oggpacket.packet, "\x80theora", 6 ) ) |
|---|
| | 835 | ! memcmp( oggpacket.packet, "\x80theora", 7 ) ) |
|---|
| 836 | 836 | { |
|---|
| 837 | 837 | Ogg_ReadTheoraHeader( p_stream, &oggpacket ); |
|---|