summaryrefslogtreecommitdiff
path: root/libavcodec/flacdec.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-03-22 21:31:23 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-03-22 21:31:23 +0000
commitb6fa746e391a3b3a80fe4d7c14795b5cf716e16b (patch)
tree58d25a3b8ebbd5275e399f56dd746e0b7dce1e91 /libavcodec/flacdec.c
parent492cc392fa518aa211fdee5eadb1f5439f45b47d (diff)
flacdec: skip frame when allocated data size is too small
Originally committed as revision 18155 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/flacdec.c')
-rw-r--r--libavcodec/flacdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index 80701f188b..a3ce1aa707 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -693,7 +693,7 @@ static int flac_decode_frame(AVCodecContext *avctx,
if (output_size > alloc_data_size) {
av_log(s->avctx, AV_LOG_ERROR, "output data size is larger than "
"allocated data size\n");
- return -1;
+ goto end;
}
*data_size = output_size;