Package: octave-video
Version:*1.2.4-1*
Severity: important

[src/aviread.cc]
/home/debian/octave-video-1.2.4/src/aviread.cc
***** demo
***** test
 fn = tmpnam;
 x = avifile(fn);

 # Generate some picture
 I = repmat(0:255, 256, 1)/255;
 I = cat(3, I, repmat([0:255]', 1, 256)/255);
 I = cat(3, I, 0.3*ones(256,256));

 # Write it to the AVI and close the AVI
 addframe(x, I);
 addframe(x, I);  #FIXME: aviread currently fails if only 1 frame
 clear x
 assert(exist(fn,"file"))
 I2 = aviread(fn, 1);

 #allow max. 5% difference between pixels
 assert(!any((I-I2)(:)>0.05))
 delete(fn);
warning: tmpnam is obsolete and will be removed from a future version of 
Octave, please use tempname instead
[avi @ 0x100257da840] Using AVStream.codec to pass codec parameters to muxers 
is deprecated, use AVStream.codecpar instead.
*[NULL @ 0x100257d81b0] Failed to parse extradata*
[swscaler @ 0x1002580b8f0] ALTIVEC: Color Space BGR24
*!!!!! test failed*
assert (!any ((I - I2) (:) > 0.05)) failed
***** xtest
 fn = tmpnam;
 x = avifile(fn);
 I = ones(256,256);
 addframe(x, I);
 clear x
 # FIXME: This fails if there is only 1 frame (fine with >1 frames) with
 # AVHandler: Error reading packet after timestamp 0
 I = aviread(fn, 1);
[avi @ 0x100257db250] Using AVStream.codec to pass codec parameters to muxers 
is deprecated, use AVStream.codecpar instead.
[NULL @ 0x100258537a0] Failed to parse extradata
*AVHandler: Error reading packet after timestamp 0*
!!!!! known failure
aviread: cannot read frame 1
2 tests, 0 passed, 1 known failure, 0 skipped

Reply via email to