Mercurial > libavcodec.hg
changeset 5645:abf90ea2c392 libavcodec
Set data_size to zero when DCA header parse failed
Patch by Limin Wang <lance('\\'>>1)lmwang>(0x24^'D')<gmail>('/' & 0xFE)<com>
Thread [PATCH] set data_size to zero if failed to parse dca header
author | kostya |
---|---|
date | Thu, 06 Sep 2007 14:55:13 +0000 |
parents | 679d6ccfffb0 |
children | adc9ec0f7385 |
files | dca.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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