[FFmpeg-cvslog] r15322 - trunk/libavformat/wav.c

jbr subversion
Sun Sep 14 19:29:34 CEST 2008


Author: jbr
Date: Sun Sep 14 19:29:34 2008
New Revision: 15322

Log:
add error message for unsupported codecs in WAVE.
Resolves issue 623.

Modified:
   trunk/libavformat/wav.c

Modified: trunk/libavformat/wav.c
==============================================================================
--- trunk/libavformat/wav.c	(original)
+++ trunk/libavformat/wav.c	Sun Sep 14 19:29:34 2008
@@ -44,6 +44,8 @@ static int wav_write_header(AVFormatCont
     /* 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;
     }




More information about the ffmpeg-cvslog mailing list