aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/wav.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2008-09-14 17:29:34 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2008-09-14 17:29:34 +0000
commit5165651cf98f06461d34d34ebdb7eabf53fbf452 (patch)
tree62a43b31f0f68992f3c94d0458c85e8026cbed8d /libavformat/wav.c
parent0605f5c86bb54f51d9f0cfd728a92bc2f6982449 (diff)
downloadffmpeg-5165651cf98f06461d34d34ebdb7eabf53fbf452.tar.gz
add error message for unsupported codecs in WAVE.
Resolves issue 623. Originally committed as revision 15322 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/wav.c')
-rw-r--r--libavformat/wav.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c
index bc6e31edc7..75e05890e6 100644
--- a/libavformat/wav.c
+++ b/libavformat/wav.c
@@ -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;
}