diff options
author | Julien Isorce <jisorce@oblong.com> | 2017-12-12 14:45:30 +0000 |
---|---|---|
committer | Julien Isorce <jisorce@oblong.com> | 2017-12-13 10:12:05 +0000 |
commit | 0d2d695eff56655e4f7cb50c59fe3a6456f17e11 (patch) | |
tree | 2e1a9b6563ac44af7b0871aed159111f6871ba7a /omx/gstomxvideo.h | |
parent | 71ddf32df9a80cbf20e719fa144b8ed52e784eeb (diff) | |
download | gst-omx-0d2d695eff56655e4f7cb50c59fe3a6456f17e11.tar.gz |
gstomxvideodec: fix framerate overflow
Some live streams can set the framerate to 50000/1677 (=29.81).
GstVideoInfo.fps_n << 16 is wrong if the fps_n is 50000
(i.e. greater than 32767).
https://bugzilla.gnome.org/show_bug.cgi?id=759043
Diffstat (limited to 'omx/gstomxvideo.h')
-rw-r--r-- | omx/gstomxvideo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/omx/gstomxvideo.h b/omx/gstomxvideo.h index f146df7..87de973 100644 --- a/omx/gstomxvideo.h +++ b/omx/gstomxvideo.h @@ -55,6 +55,8 @@ gst_omx_video_negotiation_map_free (GstOMXVideoNegotiationMap * m); GstVideoCodecFrame * gst_omx_video_find_nearest_frame (GstOMXBuffer * buf, GList * frames); +OMX_U32 gst_omx_video_calculate_framerate_q16 (GstVideoInfo * info); + G_END_DECLS #endif /* __GST_OMX_VIDEO_H__ */ |