From 2e9d23ab5e3cc12ce58042afdc2d77d098fd498e Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Mon, 22 Nov 2010 01:17:28 +0100 Subject: Fixed bug found by neptunvasja --- command/queue.cpp | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 53 insertions(+), 5 deletions(-) (limited to 'command/queue.cpp') diff --git a/command/queue.cpp b/command/queue.cpp index 9a312e2..65188e4 100644 --- a/command/queue.cpp +++ b/command/queue.cpp @@ -163,24 +163,72 @@ int cMarkAdPaketQueue::FindPktHeader(int Start, int *StreamSize,int *HeaderSize, scanner|=buffer[Start++]; } + bool found=false; for (i=Start; i=0xBC)// do we have a PES packet? + if ((buffer[i]>=0xBC) && (!Start)) // do we have a PES packet? { #define PESHDRSIZE 6 if ((i+PESHDRSIZE)>inptr) -- cgit v1.2.3