print error when unsupported sample rate is used with swf
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 16 Nov 2006 11:19:03 +0000 (11:19 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 16 Nov 2006 11:19:03 +0000 (11:19 +0000)
Originally committed as revision 7101 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/swf.c

index bc3b2f9..6029e36 100644 (file)
@@ -450,6 +450,7 @@ static int swf_write_header(AVFormatContext *s)
             break;
         default:
             /* not supported */
+            av_log(s, AV_LOG_ERROR, "swf doesnt support that sample rate, choose from (44100, 22050, 11025)\n");
             av_free(swf->audio_fifo);
             av_free(swf);
             return -1;