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
acd5910e
Unverified
Commit
acd5910e
authored
Apr 08, 2016
by
Rodger Combs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/audiotoolboxdec: reindent
parent
b20d3bf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
audiotoolboxdec.c
libavcodec/audiotoolboxdec.c
+23
-23
No files found.
libavcodec/audiotoolboxdec.c
View file @
acd5910e
...
@@ -224,37 +224,37 @@ static void put_descr(PutByteContext *pb, int tag, unsigned int size)
...
@@ -224,37 +224,37 @@ static void put_descr(PutByteContext *pb, int tag, unsigned int size)
static
uint8_t
*
ffat_get_magic_cookie
(
AVCodecContext
*
avctx
,
UInt32
*
cookie_size
)
static
uint8_t
*
ffat_get_magic_cookie
(
AVCodecContext
*
avctx
,
UInt32
*
cookie_size
)
{
{
if
(
avctx
->
codec_id
==
AV_CODEC_ID_AAC
)
{
if
(
avctx
->
codec_id
==
AV_CODEC_ID_AAC
)
{
char
*
extradata
;
char
*
extradata
;
PutByteContext
pb
;
PutByteContext
pb
;
*
cookie_size
=
5
+
3
+
5
+
13
+
5
+
avctx
->
extradata_size
;
*
cookie_size
=
5
+
3
+
5
+
13
+
5
+
avctx
->
extradata_size
;
if
(
!
(
extradata
=
av_malloc
(
*
cookie_size
)))
if
(
!
(
extradata
=
av_malloc
(
*
cookie_size
)))
return
NULL
;
return
NULL
;
bytestream2_init_writer
(
&
pb
,
extradata
,
*
cookie_size
);
bytestream2_init_writer
(
&
pb
,
extradata
,
*
cookie_size
);
// ES descriptor
// ES descriptor
put_descr
(
&
pb
,
0x03
,
3
+
5
+
13
+
5
+
avctx
->
extradata_size
);
put_descr
(
&
pb
,
0x03
,
3
+
5
+
13
+
5
+
avctx
->
extradata_size
);
bytestream2_put_be16
(
&
pb
,
0
);
bytestream2_put_be16
(
&
pb
,
0
);
bytestream2_put_byte
(
&
pb
,
0x00
);
// flags (= no flags)
bytestream2_put_byte
(
&
pb
,
0x00
);
// flags (= no flags)
// DecoderConfig descriptor
// DecoderConfig descriptor
put_descr
(
&
pb
,
0x04
,
13
+
5
+
avctx
->
extradata_size
);
put_descr
(
&
pb
,
0x04
,
13
+
5
+
avctx
->
extradata_size
);
// Object type indication
// Object type indication
bytestream2_put_byte
(
&
pb
,
0x40
);
bytestream2_put_byte
(
&
pb
,
0x40
);
bytestream2_put_byte
(
&
pb
,
0x15
);
// flags (= Audiostream)
bytestream2_put_byte
(
&
pb
,
0x15
);
// flags (= Audiostream)
bytestream2_put_be24
(
&
pb
,
0
);
// Buffersize DB
bytestream2_put_be24
(
&
pb
,
0
);
// Buffersize DB
bytestream2_put_be32
(
&
pb
,
0
);
// maxbitrate
bytestream2_put_be32
(
&
pb
,
0
);
// maxbitrate
bytestream2_put_be32
(
&
pb
,
0
);
// avgbitrate
bytestream2_put_be32
(
&
pb
,
0
);
// avgbitrate
// DecoderSpecific info descriptor
// DecoderSpecific info descriptor
put_descr
(
&
pb
,
0x05
,
avctx
->
extradata_size
);
put_descr
(
&
pb
,
0x05
,
avctx
->
extradata_size
);
bytestream2_put_buffer
(
&
pb
,
avctx
->
extradata
,
avctx
->
extradata_size
);
bytestream2_put_buffer
(
&
pb
,
avctx
->
extradata
,
avctx
->
extradata_size
);
return
extradata
;
return
extradata
;
}
else
{
}
else
{
*
cookie_size
=
avctx
->
extradata_size
;
*
cookie_size
=
avctx
->
extradata_size
;
return
avctx
->
extradata
;
return
avctx
->
extradata
;
...
...
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