Skip to content

Commit d93cc8c

Browse files
Merge pull request #2378 from JeromeMartinez/SphericalVideo2
Spherical Video 2 support, fix BF4 support with 0.32 readout, update
2 parents 4982118 + 68fb9e7 commit d93cc8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/MediaInfo/File__Analyze_Buffer_MinimizeSize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ void File__Analyze::Get_BFP4_(int8u Bits, float32 &Info)
284284
int32s Integer=(int32s)BS->Get4(Bits);
285285
int32u Fraction=BS->Get4(32-Bits);
286286
BS_End();
287-
if (Integer>=(1<<Bits)/2)
287+
if (Bits && Integer>=(1<<Bits)/2)
288288
Integer-=1<<Bits;
289-
Info=Integer+((float32)Fraction)/(1<<(32-Bits));
289+
Info=Integer+((float32)Fraction)/(1LL<<(32-Bits));
290290
}
291291

292292
//---------------------------------------------------------------------------

0 commit comments

Comments
 (0)