Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#263 Seek fails (test case attached)

open-accepted
Josh Coalson
libFLAC (57)
8
2007-07-30
2007-03-20
Elegant Dice
No

Hi,

The attached file and source code demonstrates a rare but existing bug in libFLAC somewhere (note I use the libFLAC++ interface, but I assume the problem lies in the libFLAC code).

If you attempt to seek to sample #600000 (out of a total 720000 samples), it fails. I have made many other similar files and can seek to this point in those files... but this file does not work.

Note that the testing it with "flac -t" does not indicate any errors.

This is the result:

$ ./test_seek bad_seek_to_600000.flac
Total samples = 720000
Seeking to 600000
test_seek: regional_sdr/test_seek.cpp:25: void test_decoder::test_seek(): Assertion `seek_ok' failed.
Aborted
$

I have tested this with both 1.1.3 and 1.1.4, and both times it has failed.

thanks,
Paul

Discussion

1 2 > >> (Page 1 of 2)
  • Elegant Dice
    Elegant Dice
    2007-03-20

    Test source code

     
    Attachments
  • Elegant Dice
    Elegant Dice
    2007-03-20

    Flac test file 1/6

     
    Attachments
  • Elegant Dice
    Elegant Dice
    2007-03-20

    Logged In: YES
    user_id=1168070
    Originator: YES

    File Added: test_seek_flac.zip.1

     
  • Elegant Dice
    Elegant Dice
    2007-03-20

    Flac test file 2/6

     
    Attachments
  • Elegant Dice
    Elegant Dice
    2007-03-20

    Logged In: YES
    user_id=1168070
    Originator: YES

    File Added: test_seek_flac.zip.2

     
  • Elegant Dice
    Elegant Dice
    2007-03-20

    Flac test file 3/6

     
    Attachments
  • Elegant Dice
    Elegant Dice
    2007-03-20

    Logged In: YES
    user_id=1168070
    Originator: YES

    File Added: test_seek_flac.zip.3

     
  • Elegant Dice
    Elegant Dice
    2007-03-20

    Flac test file 4/6

     
    Attachments
  • Elegant Dice
    Elegant Dice
    2007-03-20

    Logged In: YES
    user_id=1168070
    Originator: YES

    File Added: test_seek_flac.zip.4

     
  • Elegant Dice
    Elegant Dice
    2007-03-20

    Flac test file 5/6

     
    Attachments
1 2 > >> (Page 1 of 2)