diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-03-22 21:31:23 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-03-22 21:31:23 +0000 |
commit | b6fa746e391a3b3a80fe4d7c14795b5cf716e16b (patch) | |
tree | 58d25a3b8ebbd5275e399f56dd746e0b7dce1e91 /libavcodec | |
parent | 492cc392fa518aa211fdee5eadb1f5439f45b47d (diff) | |
download | ffmpeg-streaming-b6fa746e391a3b3a80fe4d7c14795b5cf716e16b.zip ffmpeg-streaming-b6fa746e391a3b3a80fe4d7c14795b5cf716e16b.tar.gz |
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')
-rw-r--r-- | libavcodec/flacdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c index 80701f1..a3ce1aa 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; |