Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
0d6d9632
Commit
0d6d9632
authored
Nov 20, 2006
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for tta in matroska
Originally committed as revision 7138 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1038efd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
matroska.c
libavformat/matroska.c
+18
-0
No files found.
libavformat/matroska.c
View file @
0d6d9632
...
...
@@ -225,6 +225,7 @@ static CodecTags codec_tags[]={
{
"A_VORBIS"
,
CODEC_ID_VORBIS
},
{
"A_AAC"
,
CODEC_ID_AAC
},
{
"A_WAVPACK4"
,
CODEC_ID_WAVPACK
},
{
"A_TTA1"
,
CODEC_ID_TTA
},
{
NULL
,
CODEC_ID_NONE
}
/* TODO: AC3-9/10 (?), Real, Musepack, Quicktime */
};
...
...
@@ -2264,6 +2265,23 @@ matroska_read_header (AVFormatContext *s,
}
}
else
if
(
codec_id
==
CODEC_ID_TTA
)
{
MatroskaAudioTrack
*
audiotrack
=
(
MatroskaAudioTrack
*
)
track
;
ByteIOContext
b
;
extradata_size
=
30
;
extradata
=
av_mallocz
(
extradata_size
);
if
(
extradata
==
NULL
)
return
AVERROR_NOMEM
;
init_put_byte
(
&
b
,
extradata
,
extradata_size
,
1
,
NULL
,
NULL
,
NULL
,
NULL
);
put_buffer
(
&
b
,
(
uint8_t
*
)
"TTA1"
,
4
);
put_le16
(
&
b
,
1
);
put_le16
(
&
b
,
audiotrack
->
channels
);
put_le16
(
&
b
,
audiotrack
->
bitdepth
);
put_le32
(
&
b
,
audiotrack
->
samplerate
);
put_le32
(
&
b
,
matroska
->
ctx
->
duration
*
audiotrack
->
samplerate
);
}
else
if
(
codec_id
==
CODEC_ID_RV10
||
codec_id
==
CODEC_ID_RV20
||
codec_id
==
CODEC_ID_RV30
||
codec_id
==
CODEC_ID_RV40
)
{
extradata_offset
=
26
;
...
...
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