changeset 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 0b02fd518909
children 14020f10caf7
files wav.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;
     }