omxvideo(enc): use GST_VIDEO_INFO_FIELD_RATE_N()
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Thu, 6 Feb 2020 04:27:48 +0000 (09:57 +0530)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Thu, 27 Feb 2020 04:05:48 +0000 (04:05 +0000)
commite616094a53b4fc1da7fce3ea5dfd319ed80cf516
tree4a90be7de872c52b28f6ad9c0343f432fca06264
parentf14f5d9f70e97b359b52bca2d272af517268fc1b
omxvideo(enc): use GST_VIDEO_INFO_FIELD_RATE_N()

Does not change anything for now but will be needed when we'll support
interlace-mode=alternate as the field rate will be twice the frame rate.

Made the code safe from division by 0 while I was on it.
omx/gstomxvideo.c
omx/gstomxvideoenc.c