[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec qdm2.c,1.8,1.9
Michael Niedermayer CVS
michael
Thu Mar 2 22:47:55 CET 2006
Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv24445
Modified Files:
qdm2.c
Log Message:
fix infinite loop
Index: qdm2.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/qdm2.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- qdm2.c 30 Jan 2006 23:41:27 -0000 1.8
+++ qdm2.c 2 Mar 2006 21:47:53 -0000 1.9
@@ -2008,8 +2008,10 @@
{
QDM2Context *s = avctx->priv_data;
- if((buf == NULL) || (buf_size < s->checksum_size))
+ if(!buf)
return 0;
+ if(buf_size < s->checksum_size)
+ return -1;
*data_size = s->channels * s->frame_size * sizeof(int16_t);
More information about the ffmpeg-cvslog
mailing list