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
cd66005d
Commit
cd66005d
authored
Feb 09, 2003
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
raw ac3 auto detects parameters
Originally committed as revision 1566 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
9899efb4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
raw.c
libavformat/raw.c
+17
-2
No files found.
libavformat/raw.c
View file @
cd66005d
...
...
@@ -122,6 +122,22 @@ static int mp3_read_header(AVFormatContext *s,
return
0
;
}
/* ac3 read */
static
int
ac3_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_AC3
;
/* the parameters will be extracted from the compressed bitstream */
return
0
;
}
/* mpeg1/h263 input */
static
int
video_read_header
(
AVFormatContext
*
s
,
AVFormatParameters
*
ap
)
...
...
@@ -207,11 +223,10 @@ AVInputFormat ac3_iformat = {
"raw ac3"
,
0
,
NULL
,
raw
_read_header
,
ac3
_read_header
,
raw_read_packet
,
raw_read_close
,
.
extensions
=
"ac3"
,
.
value
=
CODEC_ID_AC3
,
};
AVOutputFormat
ac3_oformat
=
{
...
...
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