[Mplayer-cvslog] CVS: main/libmpcodecs ad_acm.c,1.11,1.12
Arpi of Ize
arpi at mplayerhq.hu
Fri Dec 26 10:57:58 CET 2003
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/tmp/cvs-serv22384
Modified Files:
ad_acm.c
Log Message:
workaround for min_srcsize==0 (scg726.acm)
Index: ad_acm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_acm.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- ad_acm.c 24 Dec 2003 22:00:50 -0000 1.11
+++ ad_acm.c 26 Dec 2003 09:57:56 -0000 1.12
@@ -114,6 +114,12 @@
acmStreamSize(priv->handle, srcsize, &srcsize, ACM_STREAMSIZEF_DESTINATION);
// if(srcsize<in_fmt->nBlockAlign) srcsize=in_fmt->nBlockAlign;
+ if (!srcsize)
+ {
+ mp_msg(MSGT_WIN32, MSGL_WARN, "Warning! ACM codec reports srcsize=0\n");
+ srcsize = 2*in_fmt->nBlockAlign;
+ }
+
mp_msg(MSGT_WIN32,MSGL_V,"Audio ACM input buffer min. size: %ld\n",srcsize);
sh_audio->audio_in_minsize=2*srcsize; // audio input min. size
More information about the MPlayer-cvslog
mailing list