diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-05-30 23:06:37 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-05-30 23:06:37 +0000 |
commit | 47b777ceed470104fb4e6325d5ac1bddbb4752c8 (patch) | |
tree | bfb0ef80be2773589f1f0a13cdbfc55a9d579124 /libavcodec/wmadec.c | |
parent | 61d49d122cd33a215e41fbdb763bea23486eb7af (diff) | |
download | ffmpeg-47b777ceed470104fb4e6325d5ac1bddbb4752c8.tar.gz |
sanity checks (should prevent hypothetical div by zero issue)
should fix sf bug #1547313
Originally committed as revision 9164 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r-- | libavcodec/wmadec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 2022f3dba7..da02f69824 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -106,7 +106,8 @@ static int wma_decode_init(AVCodecContext * avctx) s->use_bit_reservoir = flags2 & 0x0002; s->use_variable_block_len = flags2 & 0x0004; - ff_wma_init(avctx, flags2); + if(ff_wma_init(avctx, flags2)<0) + return -1; /* init MDCT */ for(i = 0; i < s->nb_block_sizes; i++) |