| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| NullPadding |
|
| 1.0;1 |
| 1 | package org.jaudiotagger.audio.mp4.atom; | |
| 2 | ||
| 3 | import java.nio.ByteBuffer; | |
| 4 | ||
| 5 | /** | |
| 6 | * Some mp4s contain null padding at the end of the file, possibly do with gapless playback. This is not really | |
| 7 | * allowable but seeing as seems to cccur in files encoded with iTunes 6 and players such as Winamp and iTunes deal | |
| 8 | * with it we should | |
| 9 | * | |
| 10 | * It isnt actually a box, but it helps to keep as a subclass of this type | |
| 11 | */ | |
| 12 | public class NullPadding extends Mp4BoxHeader | |
| 13 | { | |
| 14 | ||
| 15 | public NullPadding(long startPosition,long fileSize) | |
| 16 | 5 | { |
| 17 | 5 | setFilePos(startPosition); |
| 18 | 5 | length=((int)(fileSize - startPosition)); |
| 19 | 5 | } |
| 20 | } |