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
fda885c7
Commit
fda885c7
authored
Feb 08, 2006
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
read/write adts aac
Originally committed as revision 4955 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
da46276f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
raw.c
libavformat/raw.c
+46
-0
No files found.
libavformat/raw.c
View file @
fda885c7
...
...
@@ -256,6 +256,23 @@ static int dts_read_header(AVFormatContext *s,
return
0
;
}
/* aac read */
static
int
aac_read_header
(
AVFormatContext
*
s
,
AVFormatParameters
*
ap
)
{
AVStream
*
st
;
st
=
av_new_stream
(
s
,
0
);
if
(
!
st
)
return
AVERROR_NOMEM
;
st
->
codec
->
codec_type
=
CODEC_TYPE_AUDIO
;
st
->
codec
->
codec_id
=
CODEC_ID_AAC
;
st
->
need_parsing
=
1
;
/* the parameters will be extracted from the compressed bitstream */
return
0
;
}
/* mpeg1/h263 input */
static
int
video_read_header
(
AVFormatContext
*
s
,
AVFormatParameters
*
ap
)
...
...
@@ -389,6 +406,32 @@ AVInputFormat dts_iformat = {
.
extensions
=
"dts"
,
};
AVInputFormat
aac_iformat
=
{
"aac"
,
"ADTS AAC"
,
0
,
NULL
,
aac_read_header
,
raw_read_partial_packet
,
raw_read_close
,
.
extensions
=
"aac"
,
};
#ifdef CONFIG_MUXERS
AVOutputFormat
aac_oformat
=
{
"aac"
,
"ADTS AAC"
,
"audio/aac"
,
"aac"
,
0
,
CODEC_ID_AAC
,
0
,
raw_write_header
,
raw_write_packet
,
raw_write_trailer
,
};
#endif
AVInputFormat
h261_iformat
=
{
"h261"
,
"raw h261"
,
...
...
@@ -739,6 +782,9 @@ int raw_init(void)
av_register_input_format
(
&
ac3_iformat
);
av_register_output_format
(
&
ac3_oformat
);
av_register_input_format
(
&
aac_iformat
);
av_register_output_format
(
&
aac_oformat
);
av_register_input_format
(
&
dts_iformat
);
av_register_input_format
(
&
h261_iformat
);
...
...
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