summaryrefslogtreecommitdiff
path: root/libavcodec/alac.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/alac.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/alac.c')
-rw-r--r--libavcodec/alac.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index d6386b40e0..793f71a11f 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -472,7 +472,10 @@ static int alac_decode_frame(AVCodecContext *avctx,
ALAC_EXTRADATA_SIZE);
return input_buffer_size;
}
- alac_set_info(alac);
+ if (alac_set_info(alac)) {
+ av_log(avctx, AV_LOG_ERROR, "alac: set_info failed\n");
+ return input_buffer_size;
+ }
alac->context_initialized = 1;
}