flacdec: skip frame when allocated data size is too small

Originally committed as revision 18155 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Justin Ruggles 16 years ago
parent 492cc392fa
commit b6fa746e39
  1. 2
      libavcodec/flacdec.c

@ -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;

Loading…
Cancel
Save