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
676f1f53
Commit
676f1f53
authored
Jan 25, 2011
by
Diego Elio Pettenò
Committed by
Janne Grunau
Jan 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused ff_ac3_parse_header_full function.
Signed-off-by:
Janne Grunau
<
janne-ffmpeg@jannau.net
>
parent
a3dffc06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
40 deletions
+0
-40
ac3_parser.c
libavcodec/ac3_parser.c
+0
-29
ac3_parser.h
libavcodec/ac3_parser.h
+0
-11
No files found.
libavcodec/ac3_parser.c
View file @
676f1f53
...
...
@@ -128,35 +128,6 @@ int ff_ac3_parse_header(GetBitContext *gbc, AC3HeaderInfo *hdr)
return
0
;
}
int
ff_ac3_parse_header_full
(
GetBitContext
*
gbc
,
AC3HeaderInfo
*
hdr
){
int
ret
,
i
;
ret
=
ff_ac3_parse_header
(
gbc
,
hdr
);
if
(
!
ret
){
if
(
hdr
->
bitstream_id
>
10
){
/* Enhanced AC-3 */
skip_bits
(
gbc
,
5
);
// skip bitstream id
/* skip dialog normalization and compression gain */
for
(
i
=
0
;
i
<
(
hdr
->
channel_mode
?
1
:
2
);
i
++
)
{
skip_bits
(
gbc
,
5
);
// skip dialog normalization
if
(
get_bits1
(
gbc
))
{
skip_bits
(
gbc
,
8
);
//skip Compression gain word
}
}
/* dependent stream channel map */
if
(
hdr
->
frame_type
==
EAC3_FRAME_TYPE_DEPENDENT
&&
get_bits1
(
gbc
))
{
hdr
->
channel_map
=
get_bits
(
gbc
,
16
);
//custom channel map
return
0
;
}
}
//default channel map based on acmod and lfeon
hdr
->
channel_map
=
ff_eac3_default_chmap
[
hdr
->
channel_mode
];
if
(
hdr
->
lfe_on
)
hdr
->
channel_map
|=
AC3_CHMAP_LFE
;
}
return
ret
;
}
static
int
ac3_sync
(
uint64_t
state
,
AACAC3ParseContext
*
hdr_info
,
int
*
need_next_header
,
int
*
new_frame_start
)
{
...
...
libavcodec/ac3_parser.h
View file @
676f1f53
...
...
@@ -38,15 +38,4 @@
*/
int
ff_ac3_parse_header
(
GetBitContext
*
gbc
,
AC3HeaderInfo
*
hdr
);
/**
* Parse AC-3 frame header and sets channel_map
* Parse the header up to the lfeon (channel_map in E-AC-3)
* element, which is the first 52, 54 or 104 bits depending
* on the audio coding mode.
* @param[in] gbc BitContext containing the first 54 bits of the frame.
* @param[out] hdr Pointer to struct where header info is written.
* @return value returned by ff_ac3_parse_header
*/
int
ff_ac3_parse_header_full
(
GetBitContext
*
gbc
,
AC3HeaderInfo
*
hdr
);
#endif
/* AVCODEC_AC3_PARSER_H */
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