[MPlayer-cvslog] CVS: main/libmpcodecs ad_liba52.c,1.19,1.20
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Fri Feb 10 19:21:54 CET 2006
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv17292
Modified Files:
ad_liba52.c
Log Message:
Make sure maxlen is respected, instead of just failing the assert later on.
Index: ad_liba52.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_liba52.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- ad_liba52.c 18 Nov 2005 14:39:21 -0000 1.19
+++ ad_liba52.c 10 Feb 2006 18:21:52 -0000 1.20
@@ -288,6 +288,10 @@
sample_t level=a52_level, bias=384;
int flags=a52_flags|A52_ADJUST_LEVEL;
int i,len=-1;
+ if (maxlen / sh_audio->samplesize / 256 / sh_audio->channels < 6) {
+ mp_msg(MSGT_DECAUDIO, MSGL_V, "maxlen too small in decode_audio\n");
+ return len;
+ }
if (sh_audio->sample_format == AF_FORMAT_FLOAT_NE)
bias = 0;
if(!sh_audio->a_in_buffer_len)
More information about the MPlayer-cvslog
mailing list