Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
7e08d2af
Commit
7e08d2af
authored
Aug 28, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASF Muxer: use the GUID definitions from the asf demuxer
parent
4d543634
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
40 deletions
+18
-40
modules/demux/asf/libasf_guid.h
modules/demux/asf/libasf_guid.h
+13
-0
modules/mux/Modules.am
modules/mux/Modules.am
+1
-1
modules/mux/asf.c
modules/mux/asf.c
+4
-39
No files found.
modules/demux/asf/libasf_guid.h
View file @
7e08d2af
...
...
@@ -197,6 +197,19 @@ static const guid_t asf_object_extended_stream_header =
static
const
guid_t
asf_object_extended_stream_type_audio
=
{
0x31178C9D
,
0x03E1
,
0x4528
,
{
0xB5
,
0x82
,
0x3D
,
0xF9
,
0xDB
,
0x22
,
0xF5
,
0x03
}};
static
const
guid_t
asf_guid_reserved_1
=
{
0xABD3D211
,
0xA9BA
,
0x11cf
,
{
0x8E
,
0xE6
,
0x00
,
0xC0
,
0x0C
,
0x20
,
0x53
,
0x65
}};
static
const
guid_t
asf_guid_reserved_2
=
//object_codec_list_reserved_guid =
{
0x86D15241
,
0x311D
,
0x11D0
,
{
0xA3
,
0xA4
,
0x00
,
0xA0
,
0xC9
,
0x03
,
0x48
,
0xF6
}};
// Stream Properties Object Error Correction
static
const
guid_t
asf_no_error_correction_guid
=
{
0x20FB5700
,
0x5B55
,
0x11CF
,
{
0xA8
,
0xFD
,
0x00
,
0x80
,
0x5F
,
0x5C
,
0x44
,
0x2B
}};
static
const
guid_t
asf_guid_audio_conceal_spread
=
{
0xBFC3CD50
,
0x618F
,
0x11CF
,
{
0x8B
,
0xB2
,
0x00
,
0xAA
,
0x00
,
0xB4
,
0xE2
,
0x20
}};
#define ASF_OBJECT_COMMON \
int i_type; \
...
...
modules/mux/Modules.am
View file @
7e08d2af
...
...
@@ -3,7 +3,7 @@ SOURCES_mux_dummy = dummy.c
SOURCES_mux_avi = avi.c
SOURCES_mux_ogg = ogg.c
SOURCES_mux_mp4 = mp4.c
SOURCES_mux_asf = asf.c
SOURCES_mux_asf = asf.c
../demux/asf/libasf_guid.h
SOURCES_mux_wav = wav.c
SOURCES_mux_mpjpeg = mpjpeg.c
...
...
modules/mux/asf.c
View file @
7e08d2af
...
...
@@ -40,7 +40,7 @@
#include <vlc_arrays.h>
#include <vlc_rand.h>
typedef
GUID
guid_t
;
#include "../demux/asf/libasf_guid.h"
#define MAX_ASF_TRACKS 128
#define ASF_DATA_PACKET_SIZE 4096 // deprecated -- added sout-asf-packet-size
...
...
@@ -825,41 +825,6 @@ static void bo_add_guid( bo_t *p_bo, const guid_t *id )
}
}
static
const
guid_t
asf_object_header_guid
=
{
0x75B22630
,
0x668E
,
0x11CF
,
{
0xA6
,
0xD9
,
0x00
,
0xAA
,
0x00
,
0x62
,
0xCE
,
0x6C
}};
static
const
guid_t
asf_object_data_guid
=
{
0x75B22636
,
0x668E
,
0x11CF
,
{
0xA6
,
0xD9
,
0x00
,
0xAA
,
0x00
,
0x62
,
0xCE
,
0x6C
}};
static
const
guid_t
asf_object_file_properties_guid
=
{
0x8cabdca1
,
0xa947
,
0x11cf
,
{
0x8e
,
0xe4
,
0x00
,
0xC0
,
0x0C
,
0x20
,
0x53
,
0x65
}};
static
const
guid_t
asf_object_stream_properties_guid
=
{
0xB7DC0791
,
0xA9B7
,
0x11CF
,
{
0x8E
,
0xE6
,
0x00
,
0xC0
,
0x0C
,
0x20
,
0x53
,
0x65
}};
static
const
guid_t
asf_object_header_extension_guid
=
{
0x5FBF03B5
,
0xA92E
,
0x11CF
,
{
0x8E
,
0xE3
,
0x00
,
0xC0
,
0x0C
,
0x20
,
0x53
,
0x65
}};
static
const
guid_t
asf_object_stream_type_audio
=
{
0xF8699E40
,
0x5B4D
,
0x11CF
,
{
0xA8
,
0xFD
,
0x00
,
0x80
,
0x5F
,
0x5C
,
0x44
,
0x2B
}};
static
const
guid_t
asf_object_stream_type_video
=
{
0xbc19efc0
,
0x5B4D
,
0x11CF
,
{
0xA8
,
0xFD
,
0x00
,
0x80
,
0x5F
,
0x5C
,
0x44
,
0x2B
}};
static
const
guid_t
asf_guid_audio_conceal_none
=
{
0x20FB5700
,
0x5B55
,
0x11CF
,
{
0xA8
,
0xFD
,
0x00
,
0x80
,
0x5F
,
0x5C
,
0x44
,
0x2B
}};
static
const
guid_t
asf_guid_audio_conceal_spread
=
{
0xBFC3CD50
,
0x618F
,
0x11CF
,
{
0x8B
,
0xB2
,
0x00
,
0xAA
,
0x00
,
0xB4
,
0xE2
,
0x20
}};
static
const
guid_t
asf_guid_video_conceal_none
=
{
0x20FB5700
,
0x5B55
,
0x11CF
,
{
0xA8
,
0xFD
,
0x00
,
0x80
,
0x5F
,
0x5C
,
0x44
,
0x2B
}};
static
const
guid_t
asf_guid_reserved_1
=
{
0xABD3D211
,
0xA9BA
,
0x11cf
,
{
0x8E
,
0xE6
,
0x00
,
0xC0
,
0x0C
,
0x20
,
0x53
,
0x65
}};
static
const
guid_t
asf_object_codec_list_guid
=
{
0x86D15240
,
0x311D
,
0x11D0
,
{
0xA3
,
0xA4
,
0x00
,
0xA0
,
0xC9
,
0x03
,
0x48
,
0xF6
}};
static
const
guid_t
asf_object_codec_list_reserved_guid
=
{
0x86D15241
,
0x311D
,
0x11D0
,
{
0xA3
,
0xA4
,
0x00
,
0xA0
,
0xC9
,
0x03
,
0x48
,
0xF6
}};
static
const
guid_t
asf_object_content_description_guid
=
{
0x75B22633
,
0x668E
,
0x11CF
,
{
0xa6
,
0xd9
,
0x00
,
0xaa
,
0x00
,
0x62
,
0xce
,
0x6c
}};
static
const
guid_t
asf_object_index_guid
=
{
0x33000890
,
0xE5B1
,
0x11CF
,
{
0x89
,
0xF4
,
0x00
,
0xA0
,
0xC9
,
0x03
,
0x49
,
0xCB
}};
static
const
guid_t
asf_object_metadata_guid
=
{
0xC5F8CBEA
,
0x5BAF
,
0x4877
,
{
0x84
,
0x67
,
0xAA
,
0x8C
,
0x44
,
0xFA
,
0x4C
,
0xCA
}};
static
const
guid_t
asf_object_extended_stream_properties_guid
=
{
0x14E6A5CB
,
0xC672
,
0x4332
,
{
0x83
,
0x99
,
0xA9
,
0x69
,
0x52
,
0x06
,
0x5B
,
0x5A
}};
/****************************************************************************
* Misc
****************************************************************************/
...
...
@@ -1096,12 +1061,12 @@ static block_t *asf_header_create( sout_mux_t *p_mux, bool b_broadcast )
if
(
tk
->
b_audio_correction
)
bo_add_guid
(
&
bo
,
&
asf_guid_audio_conceal_spread
);
else
bo_add_guid
(
&
bo
,
&
asf_
guid_audio_conceal_none
);
bo_add_guid
(
&
bo
,
&
asf_
no_error_correction_guid
);
}
else
if
(
tk
->
i_cat
==
VIDEO_ES
)
{
bo_add_guid
(
&
bo
,
&
asf_object_stream_type_video
);
bo_add_guid
(
&
bo
,
&
asf_
guid_video_conceal_none
);
bo_add_guid
(
&
bo
,
&
asf_
no_error_correction_guid
);
}
bo_addle_u64
(
&
bo
,
0
);
/* time offset */
bo_addle_u32
(
&
bo
,
tk
->
i_extra
);
...
...
@@ -1125,7 +1090,7 @@ static block_t *asf_header_create( sout_mux_t *p_mux, bool b_broadcast )
/* Codec Infos */
bo_add_guid
(
&
bo
,
&
asf_object_codec_list_guid
);
bo_addle_u64
(
&
bo
,
i_ci_size
);
bo_add_guid
(
&
bo
,
&
asf_
object_codec_list_reserved_guid
);
bo_add_guid
(
&
bo
,
&
asf_
guid_reserved_2
);
bo_addle_u32
(
&
bo
,
vlc_array_count
(
p_sys
->
p_tracks
)
);
for
(
i
=
0
;
i
<
vlc_array_count
(
p_sys
->
p_tracks
);
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment