Skip to content

Commit 3a2458a

Browse files
committed
fixed #2364
1 parent af6a5e7 commit 3a2458a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/bifs/unquantize.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* GPAC - Multimedia Framework C SDK
33
*
44
* Authors: Jean Le Feuvre
5-
* Copyright (c) Telecom ParisTech 2000-2012
5+
* Copyright (c) Telecom ParisTech 2000-2023
66
* All rights reserved
77
*
88
* This file is part of GPAC / BIFS codec sub-project
@@ -284,7 +284,7 @@ GF_Err Q_DecCoordOnUnitSphere(GF_BifsDecoder *codec, GF_BitStream *bs, u32 NbBit
284284
s32 value;
285285
Fixed tang[4], delta;
286286
s32 dir;
287-
287+
if (NbBits>32) return GF_NON_COMPLIANT_BITSTREAM;
288288
if (NbComp != 2 && NbComp != 3) return GF_BAD_PARAM;
289289

290290
//only 2 or 3 comp in the quantized version

0 commit comments

Comments
 (0)