summaryrefslogtreecommitdiff
path: root/libavcodec/shorten.c
diff options
context:
space:
mode:
authorMatthias Hopf <mat@mshopf.de>2006-11-22 01:11:29 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-11-22 01:11:29 +0000
commit1e25a7e7ebb55516d522a8ab1c4b7938b5060fe5 (patch)
treeb2377a56c13f1577aae40df7e83886eb9e8ef80f /libavcodec/shorten.c
parentba2433e9f5d8535da319f07fadd82db9d5ddbb17 (diff)
fix some potential security issues, patch by Matthias Hopf, mat at mshopf dot de
Originally committed as revision 7153 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/shorten.c')
-rw-r--r--libavcodec/shorten.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c
index bf5a093a88..358ecf23f6 100644
--- a/libavcodec/shorten.c
+++ b/libavcodec/shorten.c
@@ -335,7 +335,8 @@ static int shorten_decode_frame(AVCodecContext *avctx,
}
s->nwrap = FFMAX(NWRAP, maxnlpc);
- allocate_buffers(s);
+ if (allocate_buffers(s))
+ return -1;
init_offset(s);