@@ -68,11 +68,11 @@ public boolean addData(IoBuffer data, int timestamp) {
68
68
if (enhanced ) {
69
69
// get the packet type
70
70
packetType = VideoPacketType .valueOf (flg & IoConstants .MASK_VIDEO_CODEC );
71
- if (frameType .getValue () < 5 && packetType .getPacketType () < 5 ) {
71
+ if (frameType .getValue () < 5 && packetType .getPacketType () < 5 ) {
72
72
// get the fourcc
73
- fourcc = data .getInt ();
73
+ fourcc = data .getInt ();
74
74
result = (codec .getFourcc () == fourcc );
75
- if (!result ) {
75
+ if (!result ) {
76
76
data .reset ();
77
77
return result ;
78
78
}
@@ -184,9 +184,8 @@ public boolean addData(IoBuffer data, int timestamp) {
184
184
// not handled
185
185
break ;
186
186
}
187
-
188
-
189
- } else if ((flg & IoConstants .MASK_VIDEO_CODEC ) == codec .getId ()){
187
+
188
+ } else if ((flg & IoConstants .MASK_VIDEO_CODEC ) == codec .getId ()) {
190
189
result = true ;
191
190
// get the codecs frame type
192
191
byte avcType = data .get ();
@@ -196,11 +195,11 @@ public boolean addData(IoBuffer data, int timestamp) {
196
195
log .debug ("AVC type: {}" , avcType );
197
196
}
198
197
switch (avcType ) {
199
- case 1 : // VCL video coding layer,
198
+ case 1 : // VCL video coding layer,
200
199
frameType = VideoFrameType .valueOf ((flg & IoConstants .MASK_VIDEO_FRAMETYPE ) >> 4 );
201
200
switch (frameType ) {
202
201
case KEYFRAME : // keyframe
203
-
202
+
204
203
if (isDebug ) {
205
204
log .debug ("Keyframe - keyframeTimestamp: {}" , keyframeTimestamp );
206
205
}
@@ -236,7 +235,7 @@ public boolean addData(IoBuffer data, int timestamp) {
236
235
//log.trace("Interframes: {}", interframes.size());
237
236
}
238
237
break ;
239
- }
238
+ }
240
239
break ;
241
240
case 0 : // configuration
242
241
if (isDebug ) {
0 commit comments