I'm currently working on the Java Multimedia IO Project and was testing the RIFFInputStream, but as I was testing I ran into a NegativeArraySizeException; the following is the output from the debug console;
RIFF Stream type: AVI
Chunks contained in this stream:
LIST::hdrl
avih
LIST
LIST
LIST::INFO
ISFT
Exception in thread "main" java.lang.NegativeArraySizeException
at javax.io.RIFFList.<init>(RIFFList.java:25)
at javax.io.RIFFInputStream.next(RIFFInputStream.java:58)
at javax.io.RIFFInputStream.next(RIFFInputStream.java:56)
at Test.main(Test.java:25)
When I first received this exception I downloaded a RIFF viewer, the viewer listed the following chunks;
RIFF:AVI
LIST:hdrl
avih
LIST:strl
LIST:strl
JUNK
LIST:INFO
ISFT
JUNK
LIST:movi
idx1
So what's happening looks to be the RIFFList constructor code is having trouble building the movi
list. What I would like to know is why is it receiving a negative number from the stream?
Thanks, Liam.