@@ -68,11 +68,11 @@ public boolean addData(IoBuffer data, int timestamp) {
6868 if (enhanced ) {
6969 // get the packet type
7070 packetType = VideoPacketType .valueOf (flg & IoConstants .MASK_VIDEO_CODEC );
71- if (frameType .getValue () < 5 && packetType .getPacketType () < 5 ) {
71+ if (frameType .getValue () < 5 && packetType .getPacketType () < 5 ) {
7272 // get the fourcc
73- fourcc = data .getInt ();
73+ fourcc = data .getInt ();
7474 result = (codec .getFourcc () == fourcc );
75- if (!result ) {
75+ if (!result ) {
7676 data .reset ();
7777 return result ;
7878 }
@@ -184,9 +184,8 @@ public boolean addData(IoBuffer data, int timestamp) {
184184 // not handled
185185 break ;
186186 }
187-
188-
189- } else if ((flg & IoConstants .MASK_VIDEO_CODEC ) == codec .getId ()){
187+
188+ } else if ((flg & IoConstants .MASK_VIDEO_CODEC ) == codec .getId ()) {
190189 result = true ;
191190 // get the codecs frame type
192191 byte avcType = data .get ();
@@ -196,11 +195,11 @@ public boolean addData(IoBuffer data, int timestamp) {
196195 log .debug ("AVC type: {}" , avcType );
197196 }
198197 switch (avcType ) {
199- case 1 : // VCL video coding layer,
198+ case 1 : // VCL video coding layer,
200199 frameType = VideoFrameType .valueOf ((flg & IoConstants .MASK_VIDEO_FRAMETYPE ) >> 4 );
201200 switch (frameType ) {
202201 case KEYFRAME : // keyframe
203-
202+
204203 if (isDebug ) {
205204 log .debug ("Keyframe - keyframeTimestamp: {}" , keyframeTimestamp );
206205 }
@@ -236,7 +235,7 @@ public boolean addData(IoBuffer data, int timestamp) {
236235 //log.trace("Interframes: {}", interframes.size());
237236 }
238237 break ;
239- }
238+ }
240239 break ;
241240 case 0 : // configuration
242241 if (isDebug ) {
0 commit comments