Clean up compiler warnings

This commit is contained in:
DRC
2011-03-31 10:06:17 +00:00
parent 977458e00d
commit 892ed7e6b4
2 changed files with 2 additions and 3 deletions

View File

@@ -197,7 +197,7 @@ public class TJExample {
}
File file = new File(argv[0]);
int width, height, subsamp = TJ.SAMP_444;
int width, height;
if(inFormat.equalsIgnoreCase("jpg")) {
FileInputStream fis = new FileInputStream(file);
@@ -211,7 +211,6 @@ public class TJExample {
fis.close();
TJDecompressor tjd;
TJ.ScalingFactor sf;
if(xform.op != TJTransform.OP_NONE || xform.options != 0) {
TJTransformer tjt = new TJTransformer(inputBuf);
TJTransform t[] = new TJTransform[1];

View File

@@ -704,7 +704,7 @@ public class TJUnitTest {
String baseFilename) throws Exception {
TJCompressor tjc = null;
TJDecompressor tjd = null;
int size, pfstart, pfend;
int size;
byte[] jpegBuf;
if(yuv == YUVENCODE) jpegBuf = new byte[TJ.bufSizeYUV(w, h, subsamp)];