Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
3f3c092f
Commit
3f3c092f
authored
Oct 28, 2002
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fix a bug while passing informations to audio decoder(wma in
asf should work).
parent
7280348e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+22
-9
No files found.
modules/demux/asf/asf.c
View file @
3f3c092f
...
...
@@ -2,7 +2,7 @@
* asf.c : ASFv01 file input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: asf.c,v 1.
2 2002/10/21 09:18:3
7 fenrir Exp $
* $Id: asf.c,v 1.
3 2002/10/28 11:49:5
7 fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -189,13 +189,7 @@ static int Activate( vlc_object_t * p_this )
input_AddES
(
p_input
,
p_input
->
stream
.
p_selected_program
,
p_sp
->
i_stream_number
,
p_sp
->
i_type_specific_data_length
);
if
(
p_sp
->
i_type_specific_data_length
>
11
)
{
memcpy
(
p_stream
->
p_es
->
p_demux_data
,
p_sp
->
p_type_specific_data
+
11
,
p_sp
->
i_type_specific_data_length
-
11
);
}
0
);
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
if
(
CmpGUID
(
&
p_sp
->
i_stream_type
,
&
asf_object_stream_type_audio
)
)
...
...
@@ -231,14 +225,25 @@ static int Activate( vlc_object_t * p_this )
VLC_FOURCC
(
'a'
,
'5'
,
'2'
,
' '
);
break
;
case
(
0x160
):
p_stream
->
p_es
->
i_fourcc
=
VLC_FOURCC
(
'w'
,
'm'
,
'a'
,
'1'
);
break
;
case
(
0x161
):
p_stream
->
p_es
->
i_fourcc
=
VLC_FOURCC
(
'w'
,
'm'
,
'a'
,
'
'
);
VLC_FOURCC
(
'w'
,
'm'
,
'a'
,
'
2
'
);
break
;
default:
p_stream
->
p_es
->
i_fourcc
=
VLC_FOURCC
(
'u'
,
'n'
,
'd'
,
'f'
);
}
if
(
p_sp
->
i_type_specific_data_length
>
0
)
{
p_stream
->
p_es
->
p_demux_data
=
malloc
(
p_sp
->
i_type_specific_data_length
);
memcpy
(
p_stream
->
p_es
->
p_demux_data
,
p_sp
->
p_type_specific_data
,
p_sp
->
i_type_specific_data_length
);
}
}
else
...
...
@@ -258,6 +263,14 @@ static int Activate( vlc_object_t * p_this )
p_stream
->
p_es
->
i_fourcc
=
VLC_FOURCC
(
'u'
,
'n'
,
'd'
,
'f'
);
}
if
(
p_sp
->
i_type_specific_data_length
>
11
)
{
p_stream
->
p_es
->
p_demux_data
=
malloc
(
p_sp
->
i_type_specific_data_length
-
11
);
memcpy
(
p_stream
->
p_es
->
p_demux_data
,
p_sp
->
p_type_specific_data
+
11
,
p_sp
->
i_type_specific_data_length
-
11
);
}
}
else
...
...
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