From: Jan Schmidt Date: Mon, 29 Jul 2019 18:01:55 +0000 (+1000) Subject: exiftag: Don't output rational numbers with denominator = 0 X-Git-Tag: 1.19.3~511^2~980 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd966c437ffa3c9b8abc0138b9d1cad726d5ec65;p=platform%2Fupstream%2Fgstreamer.git exiftag: Don't output rational numbers with denominator = 0 --- diff --git a/gst-libs/gst/tag/gstexiftag.c b/gst-libs/gst/tag/gstexiftag.c index b615779..4ee04d1 100644 --- a/gst-libs/gst/tag/gstexiftag.c +++ b/gst-libs/gst/tag/gstexiftag.c @@ -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)