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
28101f6c
Commit
28101f6c
authored
Dec 10, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flac muxer: fix writing of file header and STREAMINFO header from extradata
fixes Bug 119
parent
2b53e696
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
flacenc_header.c
libavformat/flacenc_header.c
+4
-6
No files found.
libavformat/flacenc_header.c
View file @
28101f6c
...
...
@@ -37,13 +37,11 @@ int ff_flac_write_header(AVIOContext *pb, AVCodecContext *codec,
if
(
!
avpriv_flac_is_extradata_valid
(
codec
,
&
format
,
&
streaminfo
))
return
-
1
;
/* write "fLaC" stream marker and first metadata block header if needed */
if
(
format
==
FLAC_EXTRADATA_FORMAT_STREAMINFO
)
{
avio_write
(
pb
,
header
,
8
);
}
/* write "fLaC" stream marker and first metadata block header */
avio_write
(
pb
,
header
,
8
);
/* write STREAMINFO
or full header
*/
avio_write
(
pb
,
codec
->
extradata
,
codec
->
extradata_size
);
/* write STREAMINFO */
avio_write
(
pb
,
streaminfo
,
FLAC_STREAMINFO_SIZE
);
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