[FFmpeg-cvslog] r10423 - trunk/libavcodec/dca.c
kostya
subversion
Thu Sep 6 16:55:13 CEST 2007
Author: kostya
Date: Thu Sep 6 16:55:13 2007
New Revision: 10423
Log:
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
Modified:
trunk/libavcodec/dca.c
Modified: trunk/libavcodec/dca.c
==============================================================================
--- trunk/libavcodec/dca.c (original)
+++ trunk/libavcodec/dca.c Thu Sep 6 16:55:13 2007
@@ -1151,6 +1151,7 @@ static int dca_decode_frame(AVCodecConte
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
More information about the ffmpeg-cvslog
mailing list