#301 seek bug for small Ogg FLAC streams

closed-fixed
Josh Coalson
libFLAC (57)
7
2007-09-11
2007-09-11
Josh Coalson
No

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.

Discussion

  • Josh Coalson
    Josh Coalson
    2007-09-11

    • status: open --> closed-fixed
     
  • Josh Coalson
    Josh Coalson
    2007-09-11

    Logged In: YES
    user_id=78173
    Originator: YES

    fixed in CVS