From c6d214a285a123686fb19afc64a96d841ca6ea0f Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 19 Jun 2018 13:47:53 +0200 Subject: [PATCH] Fixed h264::nalFactory function --- lib/h264.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/h264.cpp b/lib/h264.cpp index 3f0773c9..ebbeb7a0 100644 --- a/lib/h264.cpp +++ b/lib/h264.cpp @@ -873,7 +873,7 @@ namespace h264 { //search for the next start marker for (size_t i = 1; i < len-2; ++i){ if (data[i] == 0 && data[i+1] == 0 && data[i+2] == 1){ - offset += i+2; + offset += i+3; while (i && !data[i]){--i;} pktLen = i; break;