smoothstreaming: update fps calculation for h264 codec parser API changes
authorTim-Philipp Müller <tim@centricular.com>
Wed, 25 May 2016 09:59:00 +0000 (10:59 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 28 May 2016 09:29:20 +0000 (10:29 +0100)
commit7d46d67c59eab6cfda24d43220dfba2b0f9131d3
treef7d9f0e33fc73d5ccec880a9c38bc99f0146e86a
parente35bc2c2b4d114496ccaa197a1613ee2987f9ec0
smoothstreaming: update fps calculation for h264 codec parser API changes

Use new gst_h264_video_calculate_framerate() API instead of fps_n/fps_d
fields in SPS struct which are to be removed.

Apparently H264 content in MSS is always non-interlaced/progressive,
so we can just pass 0 for field_pic_flag and don't need to parse any
slice headers first if there's no external signalling. But even if
that's not the case the new code is not worse than the existing code.

https://msdn.microsoft.com/en-us/library/cc189080%28VS.95%29.aspx

https://bugzilla.gnome.org/show_bug.cgi?id=723352
ext/smoothstreaming/gstmssmanifest.c