seeks in small streams can trigger a bug where the first physical seek is to a point after the beginning of the last page. so no frame is initially decoded, and this_frame_sample is not set. so it keeps its same erroneous initial value of 0 and the logic on line 3218 of rev 1.145 of src/libFLAC/stream_decoder.c is not triggered on iteration 1 to move the physical seek target.
fix is to initialize this_frame_sample to (-1) which will always trigger until a frame is found.
Josh Coalson
2007-09-11
Logged In: YES
user_id=78173
Originator: YES
see also
http://lists.xiph.org/pipermail/flac-dev/2007-July/002258.html
Josh Coalson
2007-09-11
Logged In: YES
user_id=78173
Originator: YES
http://lists.xiph.org/pipermail/flac-dev/2007-July/002268.html
Josh Coalson
2007-09-11
Josh Coalson
2007-09-11
Logged In: YES
user_id=78173
Originator: YES
fixed in CVS