mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
add error message for unsupported codecs in WAVE.
Resolves issue 623. Originally committed as revision 15322 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0605f5c86b
commit
5165651cf9
@ -44,6 +44,8 @@ static int wav_write_header(AVFormatContext *s)
|
||||
/* format header */
|
||||
fmt = start_tag(pb, "fmt ");
|
||||
if (put_wav_header(pb, s->streams[0]->codec) < 0) {
|
||||
av_log(s, AV_LOG_ERROR, "%s codec not supported in WAVE format\n",
|
||||
s->streams[0]->codec->codec->name);
|
||||
av_free(wav);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user