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
d246231e
Commit
d246231e
authored
Apr 29, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wavenc: use codec descriptors to get the codec name
Also, return a proper error code.
parent
968a62a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
wavenc.c
libavformat/wavenc.c
+3
-2
No files found.
libavformat/wavenc.c
View file @
d246231e
...
...
@@ -110,9 +110,10 @@ static int wav_write_header(AVFormatContext *s)
/* format header */
fmt
=
ff_start_tag
(
pb
,
"fmt "
);
if
(
ff_put_wav_header
(
pb
,
s
->
streams
[
0
]
->
codec
)
<
0
)
{
const
AVCodecDescriptor
*
desc
=
avcodec_descriptor_get
(
s
->
streams
[
0
]
->
codec
->
codec_id
);
av_log
(
s
,
AV_LOG_ERROR
,
"%s codec not supported in WAVE format
\n
"
,
s
->
streams
[
0
]
->
codec
->
codec
?
s
->
streams
[
0
]
->
codec
->
codec
->
name
:
"NONE
"
);
return
-
1
;
desc
?
desc
->
name
:
"unknown
"
);
return
AVERROR
(
ENOSYS
)
;
}
ff_end_tag
(
pb
,
fmt
);
...
...
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