1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avutil/avsscanf: do not use unsupported p suffix for hex variable

This commit is contained in:
Paul B Mahol 2018-11-21 19:07:33 +01:00
parent ce0a753634
commit 7d70f09307

View File

@ -241,8 +241,6 @@ static long long scanexp(FFFILE *f, int pok)
#define LD_B1B_MAX 9007199, 254740991
#define KMAX 128
#define MASK (KMAX-1)
#define CONCAT2(x,y) x ## y
#define CONCAT(x,y) CONCAT2(x,y)
static double decfloat(FFFILE *f, int c, int bits, int emin, int sign, int pok)
{
@ -483,7 +481,7 @@ static double decfloat(FFFILE *f, int c, int bits, int emin, int sign, int pok)
y -= bias;
if ((e2+DBL_MANT_DIG & INT_MAX) > emax-5) {
if (fabs(y) >= CONCAT(0x1p, DBL_MANT_DIG)) {
if (fabs(y) >= pow(2, DBL_MANT_DIG)) {
if (denormal && bits==DBL_MANT_DIG+e2-emin)
denormal = 0;
y *= 0.5;