From 264838b02c9237ae24cc170e80baedb3cc348033 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 6 Nov 2017 12:17:32 +0100 Subject: [PATCH] Fixed FPS issues on RTSP --- lib/h264.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/h264.cpp b/lib/h264.cpp index 3cb23818..3f0773c9 100644 --- a/lib/h264.cpp +++ b/lib/h264.cpp @@ -158,6 +158,7 @@ namespace h264 { } //vuiParameters + result.fps = 0; if (bs.get(1)) { //Skipping all the paramters we dont use if (bs.get(1)) { @@ -185,8 +186,6 @@ namespace h264 { unsigned int timeScale = bs.get(32); result.fps = (double)timeScale / (2 * unitsInTick); bs.skip(1); - }else{ - result.fps = 0; } }