From 5165651cf98f06461d34d34ebdb7eabf53fbf452 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sun, 14 Sep 2008 17:29:34 +0000 Subject: add error message for unsupported codecs in WAVE. Resolves issue 623. Originally committed as revision 15322 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/wav.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/wav.c') 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; } -- cgit v1.2.3