|
@@ -130,6 +130,9 @@ class VidUsImageData {
|
|
|
if (index >= _imageCount || index < 0) {
|
|
|
throw Exception("Can not find image Data");
|
|
|
}
|
|
|
+ if (index < _imagesList.length) {
|
|
|
+ return _imagesList[index];
|
|
|
+ }
|
|
|
//Jump to image.
|
|
|
var imageData = _reader.readBytes(_imagePositionList[index]);
|
|
|
return VidUsImage.fromBytes(imageData);
|