aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/swf.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-11-16 11:19:03 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-11-16 11:19:03 +0000
commit43a868641633899551f824e37039bf8f9df8bc51 (patch)
tree970366eb0267d6e05ec52b0ac36073ae5bb216c7 /libavformat/swf.c
parent06599638dd678c9939df0fd83ff693c43b25971d (diff)
downloadffmpeg-43a868641633899551f824e37039bf8f9df8bc51.tar.gz
print error when unsupported sample rate is used with swf
Originally committed as revision 7101 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/swf.c')
-rw-r--r--libavformat/swf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/swf.c b/libavformat/swf.c
index bc3b2f9f6c..6029e36783 100644
--- a/libavformat/swf.c
+++ b/libavformat/swf.c
@@ -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;