encoder: mpeg2: use fabsf() instead of abs()
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 3 Apr 2015 18:27:24 +0000 (20:27 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 8 Apr 2015 14:20:55 +0000 (16:20 +0200)
commitd363000eaaa239c43cf1400199aa72b845aa73e1
tree7303eddb6c29537364db3ac2b4a260d17f8f5b1a
parentc9f0807752f6ae09ee85478c8d16d53d222f6435
encoder: mpeg2: use fabsf() instead of abs()

The member value in frame_rate_tab is float, the result of the abs() function
should be float too. But abs() only manages integers.

This patch replaces abs() with fabsf() to handle correctly the possible floats
values.

https://bugzilla.gnome.org/show_bug.cgi?id=747312
gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c