Skip to content

Commit 87e7a1e

Browse files
committed
counting error packets as dropped
1 parent deacaa7 commit 87e7a1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/src/main/java/info/martinmarinov/drivers/DvbDemux.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ private void swfilterPacket(byte[] buf, int offset) throws IOException {
154154
int pid = tsPid(buf, offset);
155155

156156
if ((buf[offset+1] & 0x80) != 0) {
157+
droppedUsbFps++; // count this as dropped frame
157158
/* data in this packet cant be trusted - drop it unless
158159
* constant DVB_DEMUX_FEED_ERR_PKTS is set */
159160
if (!DVB_DEMUX_FEED_ERR_PKTS) return;

0 commit comments

Comments
 (0)