img2dec: support seeking with ts_from_file