Skip to content

Commit faa75ed

Browse files
committed
fixed #2213
1 parent dc7de8d commit faa75ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/laser/lsr_dec.c

+2
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,8 @@ static void lsr_read_id(GF_LASeRCodec *lsr, GF_Node *n)
838838

839839
static Fixed lsr_translate_coords(GF_LASeRCodec *lsr, u32 val, u32 nb_bits)
840840
{
841+
if (!nb_bits) return 0;
842+
841843
#ifdef GPAC_FIXED_POINT
842844
if (val >> (nb_bits-1) ) {
843845
s32 neg = (s32) val - (1<<nb_bits);

0 commit comments

Comments
 (0)