gst/gststructure.c: Avoid overflows in fixation code when dealing with MAXINT values...
authorOlivier Crete <tester@tester.ca>
Tue, 5 Aug 2008 15:03:27 +0000 (15:03 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 5 Aug 2008 15:03:27 +0000 (15:03 +0000)
commit70a4cad10c0e4f5c13dbce4e0a3d7ba15c785bff
treef5a5d82cad79bfa7b3882556dd0b30004c72c74b
parentd041a7411a9f1c513a94407cf764e1a941394be8
gst/gststructure.c: Avoid overflows in fixation code when dealing with MAXINT values, which v4l2src seems to do.

Original commit message from CVS:
Patch by: Olivier Crete <tester at tester dot ca>
* gst/gststructure.c:
(gst_structure_fixate_field_nearest_fraction):
Avoid overflows in fixation code when dealing with MAXINT values, which
v4l2src seems to do.
Fixes #546328.
* tests/check/gst/gststructure.c: (GST_START_TEST):
Make a unit test to check the fix.
ChangeLog
gst/gststructure.c
tests/check/gst/gststructure.c