Commit 9589326c authored by jbr's avatar jbr

flacdec: skip frame when allocated data size is too large


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18155 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e6a8b6ee
...@@ -693,7 +693,7 @@ static int flac_decode_frame(AVCodecContext *avctx, ...@@ -693,7 +693,7 @@ static int flac_decode_frame(AVCodecContext *avctx,
if (output_size > alloc_data_size) { if (output_size > alloc_data_size) {
av_log(s->avctx, AV_LOG_ERROR, "output data size is larger than " av_log(s->avctx, AV_LOG_ERROR, "output data size is larger than "
"allocated data size\n"); "allocated data size\n");
return -1; goto end;
} }
*data_size = output_size; *data_size = output_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment