diff --git a/libavcodec/dca.c b/libavcodec/dca.c index 0426693d43..e99dac0266 100644 --- a/libavcodec/dca.c +++ b/libavcodec/dca.c @@ -1151,6 +1151,7 @@ static int dca_decode_frame(AVCodecContext * avctx, init_get_bits(&s->gb, s->dca_buffer, s->dca_buffer_size * 8); if (dca_parse_frame_header(s) < 0) { //seems like the frame is corrupt, try with the next one + *data_size=0; return buf_size; } //set AVCodec values with parsed data