# HG changeset patch # User kostya # Date 1189090513 0 # Node ID abf90ea2c39266b38e5f33fb504b7bc8c1dfad9e # Parent 679d6ccfffb0b7c38e4a4df4f65d95d9d545a5fa Set data_size to zero when DCA header parse failed Patch by Limin Wang >1)lmwang>(0x24^'D')('/' & 0xFE) Thread [PATCH] set data_size to zero if failed to parse dca header diff -r 679d6ccfffb0 -r abf90ea2c392 dca.c --- a/dca.c Thu Sep 06 12:36:07 2007 +0000 +++ b/dca.c Thu Sep 06 14:55:13 2007 +0000 @@ -1151,6 +1151,7 @@ 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