Code Duplication    Length = 6-13 lines in 2 locations

src/wp-includes/ID3/module.audio-video.flv.php 2 locations

@@ 186-198 (lines=13) @@
183
							$PictureSizeType = $PictureSizeType & 0x0007;
184
							$info['flv']['header']['videoSizeType'] = $PictureSizeType;
185
							switch ($PictureSizeType) {
186
								case 0:
187
									//$PictureSizeEnc = getid3_lib::BigEndian2Int(substr($FLVvideoHeader, 5, 2));
188
									//$PictureSizeEnc <<= 1;
189
									//$info['video']['resolution_x'] = ($PictureSizeEnc & 0xFF00) >> 8;
190
									//$PictureSizeEnc = getid3_lib::BigEndian2Int(substr($FLVvideoHeader, 6, 2));
191
									//$PictureSizeEnc <<= 1;
192
									//$info['video']['resolution_y'] = ($PictureSizeEnc & 0xFF00) >> 8;
193
194
									$PictureSizeEnc['x'] = getid3_lib::BigEndian2Int(substr($FLVvideoHeader, 4, 2)) >> 7;
195
									$PictureSizeEnc['y'] = getid3_lib::BigEndian2Int(substr($FLVvideoHeader, 5, 2)) >> 7;
196
									$info['video']['resolution_x'] = $PictureSizeEnc['x'] & 0xFF;
197
									$info['video']['resolution_y'] = $PictureSizeEnc['y'] & 0xFF;
198
									break;
199
200
								case 1:
201
									$PictureSizeEnc['x'] = getid3_lib::BigEndian2Int(substr($FLVvideoHeader, 4, 3)) >> 7;
@@ 200-205 (lines=6) @@
197
									$info['video']['resolution_y'] = $PictureSizeEnc['y'] & 0xFF;
198
									break;
199
200
								case 1:
201
									$PictureSizeEnc['x'] = getid3_lib::BigEndian2Int(substr($FLVvideoHeader, 4, 3)) >> 7;
202
									$PictureSizeEnc['y'] = getid3_lib::BigEndian2Int(substr($FLVvideoHeader, 6, 3)) >> 7;
203
									$info['video']['resolution_x'] = $PictureSizeEnc['x'] & 0xFFFF;
204
									$info['video']['resolution_y'] = $PictureSizeEnc['y'] & 0xFFFF;
205
									break;
206
207
								case 2:
208
									$info['video']['resolution_x'] = 352;