Changeset 386b36feda62acb423b13eb23a08be19891e8798
- Timestamp:
- 06/04/06 19:54:21
(3 years ago)
- Author:
- Christophe Massiot <massiot@videolan.org>
- git-committer:
- Christophe Massiot <massiot@videolan.org> 1144346061 +0000
- git-parent:
[1017d246c12d22caccaf01117ad8e187f14720cf]
- git-author:
- Christophe Massiot <massiot@videolan.org> 1144346061 +0000
- Message:
- ALL: extention -> extension
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r0ade81b |
r386b36f |
|
| 867 | 867 | p_esp->i_average_time_per_frame= GetQWLE( &p_data[52] ); |
|---|
| 868 | 868 | p_esp->i_stream_name_count = GetWLE( &p_data[60] ); |
|---|
| 869 | | p_esp->i_payload_extention_system_count = GetWLE( &p_data[62] ); |
|---|
| | 869 | p_esp->i_payload_extension_system_count = GetWLE( &p_data[62] ); |
|---|
| 870 | 870 | |
|---|
| 871 | 871 | p_data += 64; |
|---|
| … | … | |
| 896 | 896 | } |
|---|
| 897 | 897 | |
|---|
| 898 | | for( i = 0; i < p_esp->i_payload_extention_system_count; i++ ) |
|---|
| | 898 | for( i = 0; i < p_esp->i_payload_extension_system_count; i++ ) |
|---|
| 899 | 899 | { |
|---|
| 900 | 900 | /* Skip them */ |
|---|
| … | … | |
| 947 | 947 | p_esp->pi_stream_name_language[i], |
|---|
| 948 | 948 | p_esp->ppsz_stream_name[i] ); |
|---|
| 949 | | msg_Dbg( s, " - payload extention system count=%d", |
|---|
| 950 | | p_esp->i_payload_extention_system_count ); |
|---|
| | 949 | msg_Dbg( s, " - payload extension system count=%d", |
|---|
| | 950 | p_esp->i_payload_extension_system_count ); |
|---|
| 951 | 951 | #endif |
|---|
| 952 | 952 | return VLC_SUCCESS; |
|---|
| … | … | |
| 1372 | 1372 | { &asf_object_stream_properties_guid, "Stream Properties" }, |
|---|
| 1373 | 1373 | { &asf_object_content_description_guid, "Content Description" }, |
|---|
| 1374 | | { &asf_object_header_extension_guid, "Header Extention" }, |
|---|
| | 1374 | { &asf_object_header_extension_guid, "Header Extension" }, |
|---|
| 1375 | 1375 | { &asf_object_metadata_guid, "Metadata" }, |
|---|
| 1376 | 1376 | { &asf_object_codec_list_guid, "Codec List" }, |
|---|
| r2cb472d |
r386b36f |
|
| 365 | 365 | |
|---|
| 366 | 366 | int i_stream_name_count; |
|---|
| 367 | | int i_payload_extention_system_count; |
|---|
| | 367 | int i_payload_extension_system_count; |
|---|
| 368 | 368 | |
|---|
| 369 | 369 | int *pi_stream_name_language; |
|---|
| r0ade81b |
r386b36f |
|
| 120 | 120 | } |
|---|
| 121 | 121 | |
|---|
| 122 | | /* we had no luck looking at the file extention, so we have a look |
|---|
| | 122 | /* we had no luck looking at the file extension, so we have a look |
|---|
| 123 | 123 | * at the content. This is useful for .asp, .php and similar files |
|---|
| 124 | 124 | * that are actually html. Also useful for some asx files that have |
|---|
| r0d2c5a8 |
r386b36f |
|
| 136 | 136 | vlc_value_t val; |
|---|
| 137 | 137 | |
|---|
| 138 | | /* We accept file based on extention match */ |
|---|
| | 138 | /* We accept file based on extension match */ |
|---|
| 139 | 139 | if( strcasecmp( p_demux->psz_demux, "mod" ) ) |
|---|
| 140 | 140 | { |
|---|
| r0d2c5a8 |
r386b36f |
|
| 114 | 114 | if( memcmp( p_peek, "MP+", 3 ) ) |
|---|
| 115 | 115 | { |
|---|
| 116 | | /* for v4..6 we check extention file */ |
|---|
| | 116 | /* for v4..6 we check extension file */ |
|---|
| 117 | 117 | const int i_version = (GetDWLE( p_peek ) >> 11)&0x3ff; |
|---|
| 118 | 118 | |
|---|
| rdfce5fb |
r386b36f |
|
| 762 | 762 | static const guid_t asf_object_stream_properties_guid = |
|---|
| 763 | 763 | {0xB7DC0791, 0xA9B7, 0x11CF, {0x8E, 0xE6, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65}}; |
|---|
| 764 | | static const guid_t asf_object_header_extention_guid = |
|---|
| | 764 | static const guid_t asf_object_header_extension_guid = |
|---|
| 765 | 765 | {0x5FBF03B5, 0xA92E, 0x11CF, {0x8E, 0xE3, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65}}; |
|---|
| 766 | 766 | static const guid_t asf_object_stream_type_audio = |
|---|
| … | … | |
| 894 | 894 | bo_addle_u32( &bo, p_sys->i_bitrate ); /* maxbitrate */ |
|---|
| 895 | 895 | |
|---|
| 896 | | /* header extention */ |
|---|
| | 896 | /* header extension */ |
|---|
| 897 | 897 | if( i_header_ext_size ) |
|---|
| 898 | 898 | { |
|---|
| 899 | | bo_add_guid ( &bo, &asf_object_header_extention_guid ); |
|---|
| | 899 | bo_add_guid ( &bo, &asf_object_header_extension_guid ); |
|---|
| 900 | 900 | bo_addle_u64( &bo, i_header_ext_size ); |
|---|
| 901 | 901 | bo_add_guid ( &bo, &asf_guid_reserved_1 ); |
|---|
| r00d18e8 |
r386b36f |
|
| 125 | 125 | bits_write( &bits, 1, 0x00 ); // additional copy info flag |
|---|
| 126 | 126 | bits_write( &bits, 1, 0x00 ); // pes crc flag |
|---|
| 127 | | bits_write( &bits, 1, 0x00 ); // pes extention flags |
|---|
| | 127 | bits_write( &bits, 1, 0x00 ); // pes extension flags |
|---|
| 128 | 128 | bits_write( &bits, 8, i_header_size ); // header size -> pts and dts |
|---|
| 129 | 129 | |
|---|
| rdfce5fb |
r386b36f |
|
| 607 | 607 | if( p_sys->b_mpeg2 ) |
|---|
| 608 | 608 | { |
|---|
| 609 | | bits_write( &bits, 9, 0 ); // src extention |
|---|
| | 609 | bits_write( &bits, 9, 0 ); // src extension |
|---|
| 610 | 610 | } |
|---|
| 611 | 611 | bits_write( &bits, 1, 1 ); // marker |
|---|
| rbf706ca |
r386b36f |
|
| 565 | 565 | int i_type = p_frag->p_buffer[4] >> 4; |
|---|
| 566 | 566 | |
|---|
| 567 | | /* Extention start code */ |
|---|
| | 567 | /* Extension start code */ |
|---|
| 568 | 568 | if( i_type == 0x01 ) |
|---|
| 569 | 569 | { |
|---|
| … | … | |
| 577 | 577 | #endif |
|---|
| 578 | 578 | |
|---|
| 579 | | /* sequence extention */ |
|---|
| | 579 | /* sequence extension */ |
|---|
| 580 | 580 | if( p_sys->p_ext) block_Release( p_sys->p_ext ); |
|---|
| 581 | 581 | p_sys->p_ext = block_Duplicate( p_frag ); |
|---|
| … | … | |
| 605 | 605 | else if( i_type == 0x08 ) |
|---|
| 606 | 606 | { |
|---|
| 607 | | /* picture extention */ |
|---|
| | 607 | /* picture extension */ |
|---|
| 608 | 608 | p_sys->i_picture_structure = p_frag->p_buffer[6]&0x03; |
|---|
| 609 | 609 | p_sys->i_top_field_first = p_frag->p_buffer[7] >> 7; |
|---|
| r50b0184 |
r386b36f |
|
| 155 | 155 | if( psz_url && strrchr( psz_url, '.' ) ) |
|---|
| 156 | 156 | { |
|---|
| 157 | | /* by extention */ |
|---|
| | 157 | /* by extension */ |
|---|
| 158 | 158 | static struct { char *ext; char *mux; } exttomux[] = |
|---|
| 159 | 159 | { |
|---|
| … | … | |
| 179 | 179 | int i; |
|---|
| 180 | 180 | |
|---|
| 181 | | msg_Dbg( p_this, "extention is %s", psz_ext ); |
|---|
| | 181 | msg_Dbg( p_this, "extension is %s", psz_ext ); |
|---|
| 182 | 182 | for( i = 0; exttomux[i].ext != NULL; i++ ) |
|---|
| 183 | 183 | { |
|---|
| … | … | |
| 188 | 188 | } |
|---|
| 189 | 189 | } |
|---|
| 190 | | msg_Dbg( p_this, "extention -> mux=%s", psz_mux_byext ); |
|---|
| | 190 | msg_Dbg( p_this, "extension -> mux=%s", psz_mux_byext ); |
|---|
| 191 | 191 | } |
|---|
| 192 | 192 | |
|---|
| … | … | |
| 198 | 198 | { |
|---|
| 199 | 199 | msg_Warn( p_stream, |
|---|
| 200 | | "no access _and_ no muxer, extention gives file/%s", |
|---|
| | 200 | "no access _and_ no muxer, extension gives file/%s", |
|---|
| 201 | 201 | psz_mux_byext ); |
|---|
| 202 | 202 | psz_access = strdup("file"); |
|---|
| … | … | |
| 228 | 228 | else |
|---|
| 229 | 229 | { |
|---|
| 230 | | msg_Err( p_stream, "no mux specified or found by extention" ); |
|---|
| | 230 | msg_Err( p_stream, "no mux specified or found by extension" ); |
|---|
| 231 | 231 | return VLC_EGENERIC; |
|---|
| 232 | 232 | } |
|---|
| re84eada |
r386b36f |
|
| 63 | 63 | |
|---|
| 64 | 64 | /** |
|---|
| 65 | | * The possible extentions for subtitle files we support |
|---|
| | 65 | * The possible extensions for subtitle files we support |
|---|
| 66 | 66 | */ |
|---|
| 67 | 67 | static const char * sub_exts[] = { "utf", "utf8", "utf-8", "sub", "srt", "smi", "txt", "ssa", "idx", NULL }; |
|---|