exiftag: Don't output rational numbers with denominator = 0

This commit is contained in:
Jan Schmidt 2019-07-30 04:01:55 +10:00
parent 7b8fc744f1
commit dd966c437f

View file

@ -1502,6 +1502,9 @@ exif_reader_read_rational_tag (GstExifReader * exif_reader,
} }
} }
if (frac_d == 0)
return FALSE; /* Ignore invalid fractions */
if (_frac_n) if (_frac_n)
*_frac_n = frac_n; *_frac_n = frac_n;
if (_frac_d) if (_frac_d)