aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wmadec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-05-30 23:06:37 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-05-30 23:06:37 +0000
commit47b777ceed470104fb4e6325d5ac1bddbb4752c8 (patch)
treebfb0ef80be2773589f1f0a13cdbfc55a9d579124 /libavcodec/wmadec.c
parent61d49d122cd33a215e41fbdb763bea23486eb7af (diff)
downloadffmpeg-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.c3
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++)