From 82809b4617f82f093497d2c523b6044fb536881e 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 05688266..931afb0b 100644 --- a/lib/h264.cpp +++ b/lib/h264.cpp @@ -216,6 +216,7 @@ namespace h264 { } //vuiParameters + result.fps = 0; if (bs.get(1)) { //Skipping all the paramters we dont use if (bs.get(1)) { @@ -243,8 +244,6 @@ namespace h264 { unsigned int timeScale = bs.get(32); result.fps = (double)timeScale / (2 * unitsInTick); bs.skip(1); - }else{ - result.fps = 0; } }