diff wav.c @ 3925:dfd3033e7de7 libavformat

add error message for unsupported codecs in WAVE. Resolves issue 623.
author jbr
date Sun, 14 Sep 2008 17:29:34 +0000
parents e6aeb2733e34
children 1aa5e41ceaef
line wrap: on
line diff
--- a/wav.c	Sun Sep 14 13:56:12 2008 +0000
+++ b/wav.c	Sun Sep 14 17:29:34 2008 +0000
@@ -44,6 +44,8 @@
     /* 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;
     }