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
c941e99b
Commit
c941e99b
authored
Sep 29, 2017
by
Tobias Rapp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/wavenc: replace literal numbers with enum constants
Signed-off-by:
Tobias Rapp
<
t.rapp@noa-archive.com
>
parent
18279738
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wavenc.c
libavformat/wavenc.c
+4
-4
No files found.
libavformat/wavenc.c
View file @
c941e99b
...
...
@@ -331,7 +331,7 @@ static int wav_write_header(AVFormatContext *s)
ffio_fill
(
pb
,
0
,
28
);
}
if
(
wav
->
write_peak
!=
2
)
{
if
(
wav
->
write_peak
!=
PEAK_ONLY
)
{
/* format header */
fmt
=
ff_start_tag
(
pb
,
"fmt "
);
if
(
ff_put_wav_header
(
s
,
pb
,
s
->
streams
[
0
]
->
codecpar
,
0
)
<
0
)
{
...
...
@@ -363,7 +363,7 @@ static int wav_write_header(AVFormatContext *s)
wav
->
maxpts
=
wav
->
last_duration
=
0
;
wav
->
minpts
=
INT64_MAX
;
if
(
wav
->
write_peak
!=
2
)
{
if
(
wav
->
write_peak
!=
PEAK_ONLY
)
{
/* info header */
ff_riff_write_info
(
s
);
...
...
@@ -381,7 +381,7 @@ static int wav_write_packet(AVFormatContext *s, AVPacket *pkt)
AVIOContext
*
pb
=
s
->
pb
;
WAVMuxContext
*
wav
=
s
->
priv_data
;
if
(
wav
->
write_peak
!=
2
)
if
(
wav
->
write_peak
!=
PEAK_ONLY
)
avio_write
(
pb
,
pkt
->
data
,
pkt
->
size
);
if
(
wav
->
write_peak
)
{
...
...
@@ -426,7 +426,7 @@ static int wav_write_trailer(AVFormatContext *s)
avio_flush
(
pb
);
if
(
s
->
pb
->
seekable
&
AVIO_SEEKABLE_NORMAL
)
{
if
(
wav
->
write_peak
!=
2
&&
avio_tell
(
pb
)
-
wav
->
data
<
UINT32_MAX
)
{
if
(
wav
->
write_peak
!=
PEAK_ONLY
&&
avio_tell
(
pb
)
-
wav
->
data
<
UINT32_MAX
)
{
ff_end_tag
(
pb
,
wav
->
data
);
avio_flush
(
pb
);
}
...
...
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