applied hotfix, but this decoder needs to be replaced with something secure and stable

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14004 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2005-08-20 21:16:09 +00:00
parent 6b0cd2601e
commit 47a758b6c2

View File

@ -264,6 +264,11 @@ int do_layer2(struct mpstr *mp, struct frame *fr,unsigned char *pcm_sample,int *
fr->jsbound = (fr->mode == MPG_MD_JOINT_STEREO) ?
(fr->mode_ext<<2)+4 : fr->II_sblimit;
if (fr->jsbound > fr->II_sblimit) {
fprintf(stderr, "libmpg123 layer2: Truncating stereo boundary to sideband limit.\n");
fr->jsbound=fr->II_sblimit;
}
if(stereo == 1 || single == 3)
single = 0;