Commit FS#11458 by me. Fixes test_codec to work on files larger then the available...