Tell users about supported audio samplerates in mmf.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 19 Mar 2012 09:09:04 +0000 (10:09 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 19 Mar 2012 09:09:04 +0000 (10:09 +0100)
libavformat/mmf.c

index b732e1f..d1e6f81 100644 (file)
@@ -68,7 +68,7 @@ static int mmf_write_header(AVFormatContext *s)
 
     rate = mmf_rate_code(s->streams[0]->codec->sample_rate);
     if(rate < 0) {
-        av_log(s, AV_LOG_ERROR, "Unsupported sample rate %d\n", s->streams[0]->codec->sample_rate);
+        av_log(s, AV_LOG_ERROR, "Unsupported sample rate %d, supported are 4000, 8000, 11025, 22050 and 44100\n", s->streams[0]->codec->sample_rate);
         return -1;
     }