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
bb2c1996
Commit
bb2c1996
authored
Nov 16, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* forwardport [17824] WAVPACK and TTA in matroska
parent
f2fe0dac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+14
-12
No files found.
modules/demux/mkv.cpp
View file @
bb2c1996
...
...
@@ -2383,6 +2383,20 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
tracks
[
i_track
]
->
fmt
.
p_extra
=
malloc
(
tracks
[
i_track
]
->
i_extra_data
);
memcpy
(
tracks
[
i_track
]
->
fmt
.
p_extra
,
tracks
[
i_track
]
->
p_extra_data
,
tracks
[
i_track
]
->
i_extra_data
);
}
else
if
(
!
strcmp
(
tracks
[
i_track
]
->
psz_codec
,
"A_WAVPACK4"
)
)
{
tracks
[
i_track
]
->
fmt
.
i_codec
=
VLC_FOURCC
(
'W'
,
'V'
,
'P'
,
'K'
);
tracks
[
i_track
]
->
fmt
.
i_extra
=
tracks
[
i_track
]
->
i_extra_data
;
tracks
[
i_track
]
->
fmt
.
p_extra
=
malloc
(
tracks
[
i_track
]
->
i_extra_data
);
memcpy
(
tracks
[
i_track
]
->
fmt
.
p_extra
,
tracks
[
i_track
]
->
p_extra_data
,
tracks
[
i_track
]
->
i_extra_data
);
}
else
if
(
!
strcmp
(
tracks
[
i_track
]
->
psz_codec
,
"A_TTA1"
)
)
{
tracks
[
i_track
]
->
fmt
.
i_codec
=
VLC_FOURCC
(
'T'
,
'T'
,
'A'
,
'1'
);
tracks
[
i_track
]
->
fmt
.
i_extra
=
tracks
[
i_track
]
->
i_extra_data
;
tracks
[
i_track
]
->
fmt
.
p_extra
=
malloc
(
tracks
[
i_track
]
->
i_extra_data
);
memcpy
(
tracks
[
i_track
]
->
fmt
.
p_extra
,
tracks
[
i_track
]
->
p_extra_data
,
tracks
[
i_track
]
->
i_extra_data
);
}
else
if
(
!
strcmp
(
tracks
[
i_track
]
->
psz_codec
,
"A_PCM/INT/BIG"
)
||
!
strcmp
(
tracks
[
i_track
]
->
psz_codec
,
"A_PCM/INT/LIT"
)
||
!
strcmp
(
tracks
[
i_track
]
->
psz_codec
,
"A_PCM/FLOAT/IEEE"
)
)
...
...
@@ -2397,18 +2411,6 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
}
tracks
[
i_track
]
->
fmt
.
audio
.
i_blockalign
=
(
tracks
[
i_track
]
->
fmt
.
audio
.
i_bitspersample
+
7
)
/
8
*
tracks
[
i_track
]
->
fmt
.
audio
.
i_channels
;
}
else
if
(
!
strcmp
(
tracks
[
i_track
]
->
psz_codec
,
"A_TTA1"
)
)
{
/* FIXME: support this codec */
msg_Err
(
&
sys
.
demuxer
,
"TTA not supported yet[%d, n=%d]"
,
(
int
)
i_track
,
tracks
[
i_track
]
->
i_number
);
tracks
[
i_track
]
->
fmt
.
i_codec
=
VLC_FOURCC
(
'u'
,
'n'
,
'd'
,
'f'
);
}
else
if
(
!
strcmp
(
tracks
[
i_track
]
->
psz_codec
,
"A_WAVPACK4"
)
)
{
/* FIXME: support this codec */
msg_Err
(
&
sys
.
demuxer
,
"Wavpack not supported yet[%d, n=%d]"
,
(
int
)
i_track
,
tracks
[
i_track
]
->
i_number
);
tracks
[
i_track
]
->
fmt
.
i_codec
=
VLC_FOURCC
(
'u'
,
'n'
,
'd'
,
'f'
);
}
else
if
(
!
strcmp
(
tracks
[
i_track
]
->
psz_codec
,
"S_TEXT/UTF8"
)
)
{
tracks
[
i_track
]
->
fmt
.
i_codec
=
VLC_FOURCC
(
's'
,
'u'
,
'b'
,
't'
);
...
...
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