projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4f452f
)
bitrate sanity check (fixes assertion failure)
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 8 Mar 2007 10:25:06 +0000
(10:25 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 8 Mar 2007 10:25:06 +0000
(10:25 +0000)
Originally committed as revision 8293 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/wmaenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/wmaenc.c
b/libavcodec/wmaenc.c
index
f1b5529
..
4fe3083
100644
(file)
--- a/
libavcodec/wmaenc.c
+++ b/
libavcodec/wmaenc.c
@@
-36,6
+36,9
@@
static int encode_init(AVCodecContext * avctx){
if(avctx->channels > MAX_CHANNELS)
return -1;
+ if(avctx->bit_rate < 24*1000)
+ return -1;
+
/* extract flag infos */
flags1 = 0;
flags2 = 1;