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
4315aa8b
Commit
4315aa8b
authored
Jun 21, 2009
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics: spacing and comments
Originally committed as revision 19246 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e9a32230
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
oggenc.c
libavformat/oggenc.c
+6
-0
No files found.
libavformat/oggenc.c
View file @
4315aa8b
...
@@ -90,8 +90,11 @@ static int ogg_build_flac_headers(AVCodecContext *avctx,
...
@@ -90,8 +90,11 @@ static int ogg_build_flac_headers(AVCodecContext *avctx,
enum
FLACExtradataFormat
format
;
enum
FLACExtradataFormat
format
;
uint8_t
*
streaminfo
;
uint8_t
*
streaminfo
;
uint8_t
*
p
;
uint8_t
*
p
;
if
(
!
ff_flac_is_extradata_valid
(
avctx
,
&
format
,
&
streaminfo
))
if
(
!
ff_flac_is_extradata_valid
(
avctx
,
&
format
,
&
streaminfo
))
return
-
1
;
return
-
1
;
// first packet: STREAMINFO
oggstream
->
header_len
[
0
]
=
51
;
oggstream
->
header_len
[
0
]
=
51
;
oggstream
->
header
[
0
]
=
av_mallocz
(
51
);
// per ogg flac specs
oggstream
->
header
[
0
]
=
av_mallocz
(
51
);
// per ogg flac specs
p
=
oggstream
->
header
[
0
];
p
=
oggstream
->
header
[
0
];
...
@@ -106,6 +109,8 @@ static int ogg_build_flac_headers(AVCodecContext *avctx,
...
@@ -106,6 +109,8 @@ static int ogg_build_flac_headers(AVCodecContext *avctx,
bytestream_put_byte
(
&
p
,
0x00
);
// streaminfo
bytestream_put_byte
(
&
p
,
0x00
);
// streaminfo
bytestream_put_be24
(
&
p
,
34
);
bytestream_put_be24
(
&
p
,
34
);
bytestream_put_buffer
(
&
p
,
streaminfo
,
FLAC_STREAMINFO_SIZE
);
bytestream_put_buffer
(
&
p
,
streaminfo
,
FLAC_STREAMINFO_SIZE
);
// second packet: VorbisComment
oggstream
->
header_len
[
1
]
=
1
+
3
+
4
+
strlen
(
vendor
)
+
4
;
oggstream
->
header_len
[
1
]
=
1
+
3
+
4
+
strlen
(
vendor
)
+
4
;
oggstream
->
header
[
1
]
=
av_mallocz
(
oggstream
->
header_len
[
1
]);
oggstream
->
header
[
1
]
=
av_mallocz
(
oggstream
->
header_len
[
1
]);
p
=
oggstream
->
header
[
1
];
p
=
oggstream
->
header
[
1
];
...
@@ -116,6 +121,7 @@ static int ogg_build_flac_headers(AVCodecContext *avctx,
...
@@ -116,6 +121,7 @@ static int ogg_build_flac_headers(AVCodecContext *avctx,
bytestream_put_le32
(
&
p
,
strlen
(
vendor
));
bytestream_put_le32
(
&
p
,
strlen
(
vendor
));
bytestream_put_buffer
(
&
p
,
vendor
,
strlen
(
vendor
));
bytestream_put_buffer
(
&
p
,
vendor
,
strlen
(
vendor
));
bytestream_put_le32
(
&
p
,
0
);
// user comment list length
bytestream_put_le32
(
&
p
,
0
);
// user comment list length
return
0
;
return
0
;
}
}
...
...
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