Commit dd966c43 authored by Jan Schmidt's avatar Jan Schmidt

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

parent 7b8fc744
......@@ -1502,6 +1502,9 @@ exif_reader_read_rational_tag (GstExifReader * exif_reader,
}
}
if (frac_d == 0)
return FALSE; /* Ignore invalid fractions */
if (_frac_n)
*_frac_n = frac_n;
if (_frac_d)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment