mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
exiftag: Don't output rational numbers with denominator = 0
This commit is contained in:
parent
7b8fc744f1
commit
dd966c437f
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue