From b6fa746e391a3b3a80fe4d7c14795b5cf716e16b Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sun, 22 Mar 2009 21:31:23 +0000 Subject: [PATCH] flacdec: skip frame when allocated data size is too small Originally committed as revision 18155 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/flacdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;