diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2007-09-06 14:55:13 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-09-06 14:55:13 +0000 |
commit | 75316e1dccaf6bfccf14e71a3683abadb17f8057 (patch) | |
tree | 5489b88943934acbce3ce5725d3e33766c4dd038 /libavcodec/dca.c | |
parent | bdfae2a57572b37156fb5d46bdf26a4ad80c7715 (diff) | |
download | ffmpeg-streaming-75316e1dccaf6bfccf14e71a3683abadb17f8057.zip ffmpeg-streaming-75316e1dccaf6bfccf14e71a3683abadb17f8057.tar.gz |
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
Originally committed as revision 10423 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dca.c')
-rw-r--r-- | libavcodec/dca.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dca.c b/libavcodec/dca.c index 0426693..e99dac0 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 |